Re: [Qemu-devel] [PATCH v3 01/31] target-arm: Fix raw read and write functions on AArch64 registers

2014-02-25 Thread Peter Crosthwaite
On Sun, Feb 16, 2014 at 2:06 AM, Peter Maydell wrote: > The raw read and write functions were using the ARM_CP_64BIT flag in > ri->type to determine whether to treat the register's state field as > uint32_t or uint64_t; however AArch64 register info structs don't use > that flag. Abstract out the

[Qemu-devel] [PATCH v3 01/31] target-arm: Fix raw read and write functions on AArch64 registers

2014-02-15 Thread Peter Maydell
The raw read and write functions were using the ARM_CP_64BIT flag in ri->type to determine whether to treat the register's state field as uint32_t or uint64_t; however AArch64 register info structs don't use that flag. Abstract out the "how big is the field?" test into a function and fix it to work