cpu: or1k: Set ppc on pc change
PATCH 1/1 cpu: or1k: Set ppc on pc change
Currently the openrisc previous program counter (ppc) is never updated when running the cgen based simulator. This causes issues when running the single step delay detection code in gdb.
cpu/ChangeLog:
2017-02-12 Stafford Horne <[email protected]>
* or1kcommon.cpu: Add pc set semantics to also update ppc.
---
Note I dont think any code needs rebuilding as this is only going to be used by the simulator (not yet upstream).
cpu/or1kcommon.cpu | 5 +++++ 1 file changed, 5 insertions(+)
cpu/or1kcommon.cpu +5 -0
@@ -26,6 +26,11 @@ (comment "program counter") (attrs PC (MACH ORBIS-MACHS)) (type pc UWI) + (get () (raw-reg h-pc)) + (set (newval) (sequence () + (set (reg h-sys-ppc) (raw-reg h-pc)) + (set (raw-reg h-pc) newval) + )) ) (define-pmacro REG-INDICES
Signature · 1 line
2.9.3
PATCH 1/1 cpu: or1k: Set ppc on pc change
Hi Stafford,
Quoted 3 lines
2017-02-12 Stafford Horne <[email protected]>
* or1kcommon.cpu: Add pc set semantics to also update ppc.
Approved and applied.
Cheers
Nick
PATCH 1/1 cpu: or1k: Set ppc on pc change
Quoted 7 lines · Nick Clifton
Hi Stafford,
Quoted 3 lines
2017-02-12 Stafford Horne <[email protected]>
* or1kcommon.cpu: Add pc set semantics to also update ppc.
Approved and applied.
Thank you
Quoted 4 lines
Cheers
Nick