Update the openrisc previous program counter (ppc) when running code in the cgen...
[deliverable/binutils-gdb.git] / cpu / or1kcommon.cpu
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.022969 seconds and 4 git commands to generate.