aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/op_helper.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-05-29 10:20:44 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-05-29 10:20:44 +0000
commit03ae77d6d2ba949fa8d0ceaac588a1075b6257b3 (patch)
treeaa3983f0e94b1e0d99eff1171279fa6a67e296f7 /target-sparc/op_helper.c
parent3386376c04533288ff51d8f3a6f0fba77af4d209 (diff)
downloadqemu-03ae77d6d2ba949fa8d0ceaac588a1075b6257b3.zip
qemu-03ae77d6d2ba949fa8d0ceaac588a1075b6257b3.tar.gz
qemu-03ae77d6d2ba949fa8d0ceaac588a1075b6257b3.tar.bz2
sparc64: fix user emulator build
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>
Diffstat (limited to 'target-sparc/op_helper.c')
-rw-r--r--target-sparc/op_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index f468e7b..aaacfc4 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -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)