From 8361f887186b5a2a7ebd4bbf8e9ae6e80f3c0e80 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Thu, 18 Jul 2024 11:37:53 +0200 Subject: [PATCH] removes setting of NEXT_PC to max if trap --- gen_input/templates/interp/CORENAME.cpp.gtl | 1 - src/vm/interp/vm_tgc5c.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/gen_input/templates/interp/CORENAME.cpp.gtl b/gen_input/templates/interp/CORENAME.cpp.gtl index 2bd17fb..c9624f9 100644 --- a/gen_input/templates/interp/CORENAME.cpp.gtl +++ b/gen_input/templates/interp/CORENAME.cpp.gtl @@ -106,7 +106,6 @@ protected: inline void raise(uint16_t trap_id, uint16_t cause){ auto trap_val = 0x80ULL << 24 | (cause << 16) | trap_id; this->core.reg.trap_state = trap_val; - this->template get_reg(traits::NEXT_PC) = std::numeric_limits::max(); } inline void leave(unsigned lvl){ diff --git a/src/vm/interp/vm_tgc5c.cpp b/src/vm/interp/vm_tgc5c.cpp index 0656c4b..135ab8c 100644 --- a/src/vm/interp/vm_tgc5c.cpp +++ b/src/vm/interp/vm_tgc5c.cpp @@ -102,7 +102,6 @@ protected: inline void raise(uint16_t trap_id, uint16_t cause){ auto trap_val = 0x80ULL << 24 | (cause << 16) | trap_id; this->core.reg.trap_state = trap_val; - this->template get_reg(traits::NEXT_PC) = std::numeric_limits::max(); } inline void leave(unsigned lvl){