On Fri, Feb 8, 2019 at 10:17 AM Alistair Francis <alistai...@gmail.com> wrote: > Can we just write a wrapper function then that sets and unsets the variable? > Something like this: > > riscv_csrrw_debug(...) { > #if !defined(CONFIG_USER_ONLY) > env->debugger = true; > #endif > result = riscv_csrrw(env, ...); > #if !defined(CONFIG_USER_ONLY) > env->debugger = false; > #endif > }
Yes, that would work. Do you want me to resubmit a fixed part 5 patch? Jim