File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1338,7 +1338,7 @@ void rv_step(struct riscv_t *rv, int32_t cycles)
1338
1338
#define DISPATCH () \
1339
1339
{ \
1340
1340
if (rv->csr_cycle >= cycles_target || rv->halt) \
1341
- goto quit ; \
1341
+ return ; \
1342
1342
/* fetch the next instruction */ \
1343
1343
inst = rv -> io .mem_ifetch (rv , rv -> PC ); \
1344
1344
/* standard uncompressed instruction */ \
@@ -1356,7 +1356,7 @@ void rv_step(struct riscv_t *rv, int32_t cycles)
1356
1356
{ \
1357
1357
/* dispatch this opcode */ \
1358
1358
if (!op_##instr(rv, inst)) \
1359
- goto quit ; \
1359
+ return ; \
1360
1360
/* increment the cycles csr */ \
1361
1361
rv ->csr_cycle++; \
1362
1362
}
@@ -1403,9 +1403,6 @@ void rv_step(struct riscv_t *rv, int32_t cycles)
1403
1403
#endif
1404
1404
TARGET (unimp )
1405
1405
1406
- quit :
1407
- return ;
1408
-
1409
1406
#undef DISPATCH_RV32C
1410
1407
#undef DISPATCH
1411
1408
#undef EXEC
You can’t perform that action at this time.
0 commit comments