qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 21/21] target/ppc: Change MSR_* to follow POWER ISA number


From: Richard Henderson
Subject: Re: [PATCH v3 21/21] target/ppc: Change MSR_* to follow POWER ISA numbering convention
Date: Tue, 3 May 2022 19:09:39 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 5/3/22 13:24, Víctor Colombo wrote:
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>
---
  target/ppc/cpu.h | 87 ++++++++++++++++++++++++------------------------
  1 file changed, 44 insertions(+), 43 deletions(-)

Acked-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]