diff options
author | Leonardo Bras <[email protected]> | 2020-12-08 18:57:08 -0300 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-12-15 22:22:06 +1100 |
commit | 87fb4978ef8f7e3d6f51ea8e259638c4e96f2fc0 (patch) | |
tree | da2251fb64224143d74aae2f702e6722be66bb7c /lib/test_overflow.c | |
parent | a300bf8c5f24bdeaa84925d1e0ec6221cbdc7597 (diff) |
KVM: PPC: Book3S HV: Fix mask size for emulated msgsndp
According to ISAv3.1 and ISAv3.0b, the msgsndp is described to split
RB in:
msgtype <- (RB) 32:36
payload <- (RB) 37:63
t <- (RB) 57:63
The current way of getting 'msgtype', and 't' is missing their MSB:
msgtype: ((arg >> 27) & 0xf) : Gets (RB) 33:36, missing bit 32
t: (arg &= 0x3f) : Gets (RB) 58:63, missing bit 57
Fixes this by applying the correct mask.
Signed-off-by: Leonardo Bras <[email protected]>
Acked-by: Paul Mackerras <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions