From 8e9a6073bf464ecf49ed263f3f1ac65ccf21af4d Mon Sep 17 00:00:00 2001 From: Onno Kortmann Date: Sat, 26 Aug 2023 14:11:16 +0200 Subject: [PATCH] Revert "Mark unlikely code paths for vm_pc, vm_insn_count changes" This reverts commit b60d3507c1972e5d34442c5555bbd4c2bac9412d. This turned out to be slightly counterproductive. --- riscv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/riscv.c b/riscv.c index 250e0a8..9f97344 100644 --- a/riscv.c +++ b/riscv.c @@ -851,13 +851,13 @@ void vm_step(vm_t *vm) uint8_t* pcl = (uint8_t*)(&_zp_vm_pc); *pcl+=4; - if (unlikely(!*pcl)) _zp_vm_pc+=256; + if (!*pcl) _zp_vm_pc+=256; //_zp_vm_pc += 4; // uint8_t* icl = (uint8_t*)(&_zp_vm_insn_count); (*icl)++; - if (unlikely(!*icl)) { + if(!*icl) { _zp_vm_insn_count+=256; if (!_zp_vm_insn_count) _zp_vm_insn_count_hi++;