Skip to content
Snippets Groups Projects
Commit 4ea0266c authored by Stafford Horne's avatar Stafford Horne Committed by Nick Clifton
Browse files

Update the openrisc previous program counter (ppc) when running code in the cgen based simulator.

	* or1kcommon.cpu: Add pc set semantics to also update ppc.
parent d5e0ba9c
No related merge requests found
2017-03-15 Stafford Horne <shorne@gmail.com>
* or1kcommon.cpu: Add pc set semantics to also update ppc.
2016-10-06 Alan Modra <amodra@gmail.com> 2016-10-06 Alan Modra <amodra@gmail.com>
* mep.opc (expand_string): Add fall through comment. * mep.opc (expand_string): Add fall through comment.
......
...@@ -26,6 +26,11 @@ ...@@ -26,6 +26,11 @@
(comment "program counter") (comment "program counter")
(attrs PC (MACH ORBIS-MACHS)) (attrs PC (MACH ORBIS-MACHS))
(type pc UWI) (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 (define-pmacro REG-INDICES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment