[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] target/mips: Fix PageMask with variable page size
From: |
Peter Maydell |
Subject: |
Re: [PATCH] target/mips: Fix PageMask with variable page size |
Date: |
Mon, 15 Jun 2020 10:13:50 +0100 |
On Sun, 14 Jun 2020 at 22:52, Aleksandar Markovic
<aleksandar.qemu.devel@gmail.com> wrote:
> When you change machine.c the way you did it, you need to bump the version.
> Please see git log on machine.c for details.
>> --- a/target/mips/cpu.h
>> +++ b/target/mips/cpu.h
>> @@ -617,7 +617,8 @@ struct CPUMIPSState {
>> /*
>> * CP0 Register 5
>> */
>> - int32_t CP0_PageMask;
>> + target_ulong CP0_PageMask;
>> +#define CP0PM_MASK 13
Does CP0_PageMask ever actually hold a value that won't fit
in an int32_t? If not, it might be preferable to avoid changing
its type to avoid the migration compat break, even if MIPS
doesn't have any versioned boards where we have a strict
don't-break-compat promise to users.
thanks
-- PMM