Fix potential failure to invalidate instruction decoding after bp. Updated simple assembler to allow setting data segment origin. PiperOrigin-RevId: 805868787 Change-Id: I4707518dc457f1366276b1051717b33c0a07f00f
diff --git a/cheriot/cheriot_top.cc b/cheriot/cheriot_top.cc index f549ec8..36eab83 100644 --- a/cheriot/cheriot_top.cc +++ b/cheriot/cheriot_top.cc
@@ -933,6 +933,7 @@ if (inst_swap) { (void)rv_ap_manager_->ap_memory_interface()->WriteOriginalInstruction( address); + cheriot_decode_cache_->Invalidate(address); } // Get the decoded instruction. Instruction* inst = cheriot_decode_cache_->GetDecodedInstruction(address);