]> git.proxmox.com Git - qemu.git/blobdiff - tcg/x86_64/tcg-target.c
Remove TLB from userspace
[qemu.git] / tcg / x86_64 / tcg-target.c
index 6e7a6a42f9218d9b48e042fc1ba8cdc50119678c..ea313fa87a5dca80a9c2c1a56c9ed7559930f8f3 100644 (file)
@@ -1426,9 +1426,11 @@ static const TCGTargetOpDef x86_64_op_defs[] = {
 
 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, 0xffff);
     tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I64], 0, 0xffff);