Update the openrisc previous program counter (ppc) when running code in the cgen...
authorStafford Horne <shorne@gmail.com>
Mon, 20 Mar 2017 15:33:51 +0000 (15:33 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Mar 2017 15:33:51 +0000 (15:33 +0000)
* or1kcommon.cpu: Add pc set semantics to also update ppc.

cpu/ChangeLog
cpu/or1kcommon.cpu

index 47c86a903eef1b938f33a9c40fbdb8ff98f6f233..ac63d288088b0879bc44cba66171111bda727891 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        * mep.opc (expand_string): Add fall through comment.
index 1119f988c518c0a97f4327519d4b4d435d2d69aa..ced70c35099f1938629ab7682ec10c44d1ca7b6f 100644 (file)
   (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
This page took 0.026278 seconds and 4 git commands to generate.