On 9/18/21 7:54 PM, Frank Chang wrote:
Do you mean it's better to change to code sequence to something like:static void mark_fs_dirty(DisasContext *ctx) { ..... if (ctx->virt_enabled && ctx->mstatus_hs_fs != MSTATUS_FS) { /* Remember the stage change for the rest of the TB. */ ctx->mstatus_hs_fs = MSTATUS_FS; ..... } if (ctx->mstatus_fs != MSTATUS_FS) { /* Remember the state change for the rest of the TB. */ ctx->mstatus_fs = MSTATUS_FS; ..... } } If so, I can update and send out the v3 patch.
Yes, something like that. r~
