Yoshinori Sato <ys...@users.sourceforge.jp> writes:

> Signed-off-by: Yoshinori Sato <ys...@users.sourceforge.jp>
<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