diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-15 18:48:16 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-15 18:48:16 +0100 |
| commit | 0b2a1fd9439d5ab1cdc076d7b9f1e763c4900b74 (patch) | |
| tree | a0a1724b1a8b2dbde94e938bb18b6ca4bb5ce800 /src/interp | |
| parent | 4a356bf56051361f2c72037f4fb043f8fdaa576c (diff) | |
| download | nanowasm-0b2a1fd9439d5ab1cdc076d7b9f1e763c4900b74.tar.gz | |
Add br_table
br_table is in fact a generalization of other branch types like br or
br_if, since br_table contains several branches for the same pc inside
the nw_lo section.
Therefore, this kind of branch forced some changes to nwp_break and
those relying on it.
Diffstat (limited to 'src/interp')
| -rw-r--r-- | src/interp/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interp/ops.c b/src/interp/ops.c index 9f80668..4366a49 100644 --- a/src/interp/ops.c +++ b/src/interp/ops.c @@ -28,7 +28,7 @@ static void (*const ops[])(struct nw_interp *) = nwp_op_end, /* OP_END */ nwp_op_br, /* OP_BR */ nwp_op_br_if, /* OP_BR_IF */ - NULL, /* OP_BR_TABLE */ + nwp_op_br_table, /* OP_BR_TABLE */ nwp_op_return, /* OP_RETURN */ nwp_op_call, /* OP_CALL */ nwp_op_call_indirect, /* OP_CALL_INDIRECT */ |
