Re: [PATCH 03/13] target/hppa: Fix PSW_W and PSW_E bits in rsm, ssm and mtsm

2024-02-09 Thread Helge Deller
On 2/8/24 21:43, Richard Henderson wrote: On 2/7/24 08:20, del...@kernel.org wrote:   #define PSW_E    0x0400 +#define PSW_E_BIT    37 /* PA2.0 only */   #define PSW_W    0x0800 /* PA2.0 only */ +#define PSW_W_BIT    36 /* PA2.0 only */ ... +targ

Re: [PATCH 03/13] target/hppa: Fix PSW_W and PSW_E bits in rsm, ssm and mtsm

2024-02-08 Thread Richard Henderson
On 2/7/24 08:20, del...@kernel.org wrote: #define PSW_E0x0400 +#define PSW_E_BIT37 /* PA2.0 only */ #define PSW_W0x0800 /* PA2.0 only */ +#define PSW_W_BIT36 /* PA2.0 only */ ... +target_ulong HELPER(get_system_mask)(CPUHPPASta

[PATCH 03/13] target/hppa: Fix PSW_W and PSW_E bits in rsm, ssm and mtsm

2024-02-07 Thread deller
From: Helge Deller The ssm and rsm instructions number the PSW_W and PSW_E bits differently than how they are actually in the PSW. Both bits are relevant on 64-bit CPUs only. Fix the existing ssm and rsm instructions to handle the bits correctly. For that drop the swap_system_mask() helper funct