fix unaligned instr fetch behavior

This commit is contained in:
2021-09-30 19:27:46 +02:00
parent d78fcc48e5
commit 2f15d9676e
3 changed files with 1 additions and 94 deletions

View File

@ -65,8 +65,6 @@ public:
using reg_t = typename traits::reg_t;
using mem_type_e = typename traits::mem_type_e;
const bool has_compressed = traits::MISA_VAL & 0b100;
vm_impl();
vm_impl(ARCH &core, unsigned core_id = 0, unsigned cluster_id = 0);
@ -212,7 +210,6 @@ private:
<%instr.behavior.eachLine{%>${it}
<%}%>} catch(...){}
// post execution stuff
if(!has_compressed && (*NEXT_PC&0x3)!=0) raise(0, 0);
if(this->sync_exec && POST_SYNC) this->do_sync(POST_SYNC, ${idx});
// trap check
if(*trap_state!=0){