On 11/4/22 15:05, Rui Wang wrote:
  static bool check_plv(DisasContext *ctx)
  {
-    if (ctx->base.tb->flags == MMU_USER_IDX) {
+    if (ctx->mem_idx == MMU_USER_IDX) {

Not quite. This needs to check HW_FLAGS_PLV_MASK, not the mem_idx. That was the intent of keeping them separate in HW_FLAGS.


r~

Reply via email to