]> git.proxmox.com Git - qemu.git/commitdiff
sparc64: fix user emulator build
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 29 May 2010 10:20:44 +0000 (10:20 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 29 May 2010 10:20:44 +0000 (10:20 +0000)
Accesses with _nucleus prefix are not available when building user
emulators:
  CC    sparc64-linux-user/op_helper.o
cc1: warnings being treated as errors
/src/qemu/target-sparc/op_helper.c: In function 'helper_ldda_asi':
/src/qemu/target-sparc/op_helper.c:3063: error: implicit declaration of function 'ldq_nucleus'

Avoid making such accesses. Fixes breakage by 54a3c0f032abf93d1cedc75456af75401ac10360.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-sparc/op_helper.c

index f468e7befa2a97354f69991860a2944e37df49b9..aaacfc484e89e098c239ad49fea2c94ea634a6b7 100644 (file)
@@ -3056,6 +3056,7 @@ void helper_ldda_asi(target_ulong addr, int asi, int rd)
         raise_exception(TT_PRIV_ACT);
 
     switch (asi) {
+#if !defined(CONFIG_USER_ONLY)
     case 0x24: // Nucleus quad LDD 128 bit atomic
     case 0x2c: // Nucleus quad LDD 128 bit atomic LE
         helper_check_align(addr, 0xf);
@@ -3079,6 +3080,7 @@ void helper_ldda_asi(target_ulong addr, int asi, int rd)
             }
         }
         break;
+#endif
     default:
         helper_check_align(addr, 0x3);
         if (rd == 0)