aboutsummaryrefslogtreecommitdiff
path: root/target-i386/cpu.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-09-17 19:02:13 +0200
committerAndreas Färber <afaerber@suse.de>2012-09-21 15:12:59 +0200
commit473955e5c3bce09c007ba3b64937cfca6f18f525 (patch)
tree99cb9f06629ad65ede7d9f29c791d22594ab75d6 /target-i386/cpu.c
parentc04321b3685a0b06d737d04146a0f1f2c5950b39 (diff)
downloadqemu-473955e5c3bce09c007ba3b64937cfca6f18f525.zip
qemu-473955e5c3bce09c007ba3b64937cfca6f18f525.tar.gz
qemu-473955e5c3bce09c007ba3b64937cfca6f18f525.tar.bz2
target-i386: Drop unused setscalar() macro
It was only used by now removed setfeatures() function. Suggested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-i386/cpu.c')
-rw-r--r--target-i386/cpu.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 7c0953f..c2e65ea 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1393,18 +1393,6 @@ int cpu_x86_register(X86CPU *cpu, const char *cpu_model)
#if !defined(CONFIG_USER_ONLY)
-/* interpret radix and convert from string to arbitrary scalar,
- * otherwise flag failure
- */
-#define setscalar(pval, str, perr) \
-{ \
- char *pend; \
- unsigned long ul; \
- \
- ul = strtoul(str, &pend, 0); \
- *str && !*pend ? (*pval = ul) : (*perr = 1); \
-}
-
void cpu_clear_apic_feature(CPUX86State *env)
{
env->cpuid_features &= ~CPUID_APIC;