Message ID | 20240904101445.4127-3-deller@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [PULL,1/2] target/hppa: Fix PSW V-bit packaging in cpu_hppa_get for hppa64 | expand |
diff --git a/target/hppa/cpu.h b/target/hppa/cpu.h index 5478b183dc..43074d80bf 100644 --- a/target/hppa/cpu.h +++ b/target/hppa/cpu.h @@ -319,7 +319,7 @@ static inline target_ulong hppa_form_gva_psw(target_ulong psw, uint64_t spc, target_ulong off) { #ifdef CONFIG_USER_ONLY - return off; + return off & gva_offset_mask(psw); #else return spc | (off & gva_offset_mask(psw)); #endif