Mercurial > hvf > hvf-old
changeset 523:b887ac39536d
cp: rename the 31bit field in the psw
It turns out that in ESA/390 mode, the instruction address is stored in the
regular 31bit field (not the same place as the z/Arch instruction address).
Let's give it a friendly name.
Additionally, let's label bit 12 as the one that gets set to either 1 or 0
depending on the PSW format.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon, 25 Apr 2011 20:52:01 -0400 |
parents | 0dd4471a7c44 |
children | 4e99f8fcd4b9 |
files | cp/include/sched.h |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cp/include/sched.h Mon Apr 25 20:44:22 2011 -0400 +++ b/cp/include/sched.h Mon Apr 25 20:52:01 2011 -0400 @@ -39,7 +39,7 @@ ex:1; /* External Mask (EX) */ u8 key:4, /* Key */ - _zero2:1, + fmt:1, /* 1 on 390, 0 on z */ m:1, /* Machine-Check Mask (M) */ w:1, /* Wait State (W) */ p:1; /* Problem State (P) */ @@ -48,11 +48,11 @@ cc:2, /* Condition Code (CC) */ prog_mask:4; /* Program Mask */ - u8 _zero3:7, + u8 _zero2:7, ea:1; /* Extended Addressing (EA) */ u32 ba:1, /* Basic Addressing (BA) */ - _zero4:31; + ptr31:31; u64 ptr; };