qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 5/5] target-arm/translate.c: Don't pass CPUARMSt


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 5/5] target-arm/translate.c: Don't pass CPUARMState * to disas_arm_insn()
Date: Tue, 4 Nov 2014 00:40:30 +0000

On 31 October 2014 13:47, Alex Bennée <address@hidden> wrote:
>
> Peter Maydell <address@hidden> writes:
>
>> Refactor to avoid passing a CPUARMState * to disas_arm_insn(). To do this
>> we move the "read insn from memory" code to the callsite and pass the
>> insn to the function instead.
>>
> <snip>
>>
>> -static void disas_arm_insn(CPUARMState * env, DisasContext *s)
>> +static void disas_arm_insn(DisasContext *s, unsigned int insn)
>
> I note that in the aarch64 code we used the unambiguous uint32_t for the
> insn type. I'm hard pressed to imagine it actually breaking anything
> though.

Yeah, we already strongly assume int to be 32 bits, and I wanted
to make this patch not mess with the type of the existing variable.

thanks
-- PMM



reply via email to

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