]> git.proxmox.com Git - mirror_qemu.git/blobdiff - accel/tcg/user-exec.c
Do not include cpu.h if it's not really necessary
[mirror_qemu.git] / accel / tcg / user-exec.c
index fa1847b2a614d35d7d8f26df4ec870c1f768e287..fb2d43e6a9a019ad285769829d7256e621ea5735 100644 (file)
@@ -17,7 +17,6 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "qemu/osdep.h"
-#include "cpu.h"
 #include "hw/core/tcg-cpu-ops.h"
 #include "disas/disas.h"
 #include "exec/exec-all.h"
@@ -213,7 +212,8 @@ static int probe_access_internal(CPUArchState *env, target_ulong addr,
         g_assert_not_reached();
     }
 
-    if (!guest_addr_valid(addr) || page_check_range(addr, 1, flags) < 0) {
+    if (!guest_addr_valid_untagged(addr) ||
+        page_check_range(addr, 1, flags) < 0) {
         if (nonfault) {
             return TLB_INVALID_MASK;
         } else {