]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: Change MSR_* to follow POWER ISA numbering convention
authorVíctor Colombo <victor.colombo@eldorado.org.br>
Wed, 4 May 2022 21:05:41 +0000 (18:05 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 5 May 2022 18:36:17 +0000 (15:36 -0300)
commitbf3dd1e6d0d7c5c4906f89776e15dddc22af784b
tree696cb00a00b9bbd23b650af483041cb0922fc996
parent39af1384faec88e49e14dc066f7653f219d79850
target/ppc: Change MSR_* to follow POWER ISA numbering convention

Today we have the issue where MSR_* values are the 'inverted order'
bit numbers from what the ISA specifies. e.g. MSR_LE is bit 63 but
is defined as 0 in QEMU.

Add a macro to be used to convert from QEMU order to ISA order.

This solution requires less changes than to use the already defined
PPC_BIT macro, which would turn MSR_* in masks instead of the numbers
itself.

Signed-off-by: Víctor Colombo <victor.colombo@eldorado.org.br>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220504210541.115256-23-victor.colombo@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu.h