From 4eabf8cc38ed912d39bb6cc87369926e84068eb3 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 24 Jul 2019 09:53:13 +0200 Subject: [PATCH] state name change --- doc/plan.org | 23 +++++++++++++++++++++++ p4src/minip4_solution.p4 | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/doc/plan.org b/doc/plan.org index 1dbd68e..4cca82b 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -6365,6 +6365,29 @@ endtask } #+END_CENTER +*** state names are fixed +#+BEGIN_CENTER +make[1]: Entering directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src' +p4c-sdnet -o minip4.sdnet --sdnet_info .sdnet_switch_info.dat minip4_solution.p4 +minip4_solution.p4(37): warning: start: implicit transition to `reject' + state start { + ^^^^^ +minip4_solution.p4(52): warning: realparser: unused instance + RealParser() realparser; + ^^^^^^^^^^ +minip4_solution.p4(45): error: parser TopParser: parser does not have a `start' state +parser TopParser( + ^^^^^^^^^ +minip4_solution.p4(45): warning: accept state in parser TopParser is unreachable +parser TopParser( + ^^^^^^^^^ +Makefile:34: recipe for target 'all' failed +make[1]: *** [all] Error 1 +make[1]: Leaving directory '/home/nico/projects/P4-NetFPGA/contrib-projects/sume-sdnet-switch/projects/minip4/src' +Makefile:31: recipe for target 'frontend' failed + +#+END_CENTER + *** TODO Further notes P4/master thesis - Cannot easily run P4 on notebook - changes to the system very invasive diff --git a/p4src/minip4_solution.p4 b/p4src/minip4_solution.p4 index 278e253..020a5ee 100644 --- a/p4src/minip4_solution.p4 +++ b/p4src/minip4_solution.p4 @@ -51,7 +51,7 @@ parser TopParser( RealParser() realparser; - state fakestart { + state start { realparser.apply(b, p, user_metadata, digest_data, sume_metadata); transition accept; }