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

2019-05-03 Thread Alex Bennée
Yoshinori Sato writes: > Signed-off-by: Yoshinori Sato > +{ > +*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

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

2019-05-02 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- target/rx/cpu-qom.h | 52 target/rx/cpu.h | 196 ++ target/rx/cpu.c | 222 3 files changed, 470 insertions(+) create mode 100644 target/rx/cpu-