From: Stafford Horne Date: Mon, 20 Mar 2017 15:33:51 +0000 (+0000) Subject: Update the openrisc previous program counter (ppc) when running code in the cgen... X-Git-Tag: gdb-8.0-branchpoint~255 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ea0266c22eccf6e7719469a981267659e47ef3a;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/cpu/ChangeLog b/cpu/ChangeLog index 47c86a903ee..ac63d288088 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,7 @@ +2017-03-15 Stafford Horne + + * or1kcommon.cpu: Add pc set semantics to also update ppc. + 2016-10-06 Alan Modra * mep.opc (expand_string): Add fall through comment. diff --git a/cpu/or1kcommon.cpu b/cpu/or1kcommon.cpu index 1119f988c51..ced70c35099 100644 --- a/cpu/or1kcommon.cpu +++ b/cpu/or1kcommon.cpu @@ -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