diff options
| author | Julian Blake Kongslie | 2023-01-15 15:14:42 -0800 |
|---|---|---|
| committer | Julian Blake Kongslie | 2023-01-15 15:14:42 -0800 |
| commit | 048d46b2d0c877d715a385545ecb271fd51245ff (patch) | |
| tree | 2fe1356ca41811e6bf8e9a810f43f6a7a0335cf2 /uarch | |
| parent | Update Plan. (diff) | |
| download | biggolf-048d46b2d0c877d715a385545ecb271fd51245ff.tar.xz | |
Add unstore events.
Diffstat (limited to 'uarch')
| -rw-r--r-- | uarch/core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uarch/core.cpp b/uarch/core.cpp index 29ac08e..503e286 100644 --- a/uarch/core.cpp +++ b/uarch/core.cpp | |||
| @@ -229,7 +229,7 @@ void exec_stage::clock() { | |||
| 229 | pte(i.tr, "~"); | 229 | pte(i.tr, "~"); |
| 230 | if (i.inst.need_autoinc_store) { | 230 | if (i.inst.need_autoinc_store) { |
| 231 | auto addr = (*i.inst.final_address - 1) & 07777; | 231 | auto addr = (*i.inst.final_address - 1) & 07777; |
| 232 | pte(i.tr, "", fmt::format("unstore={:05o}, unstoredata={:04o}", *i.inst.init_address, addr)); | 232 | pte(i.tr, "U", fmt::format("unstore={:05o}, unstoredata={:04o}", *i.inst.init_address, addr)); |
| 233 | memory::dram::command sr; | 233 | memory::dram::command sr; |
| 234 | sr.transaction = i.tr; | 234 | sr.transaction = i.tr; |
| 235 | sr.line_address = *i.inst.init_address >> memory::LINE_BYTES_LOG2; | 235 | sr.line_address = *i.inst.init_address >> memory::LINE_BYTES_LOG2; |
| @@ -252,7 +252,7 @@ void exec_stage::clock() { | |||
| 252 | pte(i.tr, "~"); | 252 | pte(i.tr, "~"); |
| 253 | if (i.inst.need_autoinc_store) { | 253 | if (i.inst.need_autoinc_store) { |
| 254 | auto addr = (*i.inst.final_address - 1) & 07777; | 254 | auto addr = (*i.inst.final_address - 1) & 07777; |
| 255 | pte(i.tr, "", fmt::format("unstore={:05o}, unstoredata={:04o}", *i.inst.init_address, addr)); | 255 | pte(i.tr, "U", fmt::format("unstore={:05o}, unstoredata={:04o}", *i.inst.init_address, addr)); |
| 256 | memory::dram::command sr; | 256 | memory::dram::command sr; |
| 257 | sr.transaction = i.tr; | 257 | sr.transaction = i.tr; |
| 258 | sr.line_address = *i.inst.init_address >> memory::LINE_BYTES_LOG2; | 258 | sr.line_address = *i.inst.init_address >> memory::LINE_BYTES_LOG2; |
