about summary refs log tree commit diff stats
path: root/subx/010---vm.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-04-06 00:08:32 -0700
committerKartik Agaram <vc@akkartik.com>2019-04-06 00:08:32 -0700
commit577281f64b5e6b7e2ef4a78fb6bc44274caedcb0 (patch)
tree8cbd86c4192bcf9e0c967fed43630e4d4822c754 /subx/010---vm.cc
parent615a7e957535dabeac826674859e33a01ed2bab4 (diff)
downloadmu-577281f64b5e6b7e2ef4a78fb6bc44274caedcb0.tar.gz
5060
Diffstat (limited to 'subx/010---vm.cc')
-rw-r--r--subx/010---vm.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/010---vm.cc b/subx/010---vm.cc
index 3def0ff9..9fbecbc0 100644
--- a/subx/010---vm.cc
+++ b/subx/010---vm.cc
@@ -240,6 +240,7 @@ inline uint32_t* mem_addr_u32(uint32_t addr) {
     }
   }
   if (result == NULL) {
+    if (Trace_file) Trace_file.flush();
     raise << "Tried to access uninitialized memory at address 0x" << HEXWORD << addr << '\n' << end();
     raise << "The entire 4-byte word should be initialized and lie in a single segment.\n" << end();
   }