qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH RFC v8 03/12] target/rx: CPU definition


From: Alex Bennée
Subject: Re: [Qemu-devel] [PATCH RFC v8 03/12] target/rx: CPU definition
Date: Fri, 03 May 2019 16:45:44 +0100
User-agent: mu4e 1.3.1; emacs 26.1

Yoshinori Sato <address@hidden> writes:

> Signed-off-by: Yoshinori Sato <address@hidden>
<snip>
> +{
> +    *pc = env->pc;
> +    *cs_base = 0;
> +    *flags = FIELD_DP32(*flags, PSW, PM, env->psw_pm);

You can't reference flags here, the caller expect you to be setting it's
value. Otherwise the compiler will rightfully complain you've just
accessed unitialised data.

  *flags = FIELD_DP32(0, PSW, PM, env->psw_pm);


--
Alex Bennée



reply via email to

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