]> git.proxmox.com Git - qemu.git/blobdiff - tcg/i386/tcg-target.c
Remove TLB from userspace
[qemu.git] / tcg / i386 / tcg-target.c
index b69b5b0c8c9b6de22b387defcae90263e3e40d9b..09c73b4396a284a7a06fe7868088c9cf9109a1ba 100644 (file)
@@ -1353,9 +1353,11 @@ void tcg_target_qemu_prologue(TCGContext *s)
 
 void tcg_target_init(TCGContext *s)
 {
+#if !defined(CONFIG_USER_ONLY)
     /* fail safe */
     if ((1 << CPU_TLB_ENTRY_BITS) != sizeof(CPUTLBEntry))
         tcg_abort();
+#endif
 
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xff);
     tcg_regset_set32(tcg_target_call_clobber_regs, 0,