]> git.proxmox.com Git - qemu.git/commitdiff
target-i386: Drop unused setscalar() macro
authorAndreas Färber <afaerber@suse.de>
Mon, 17 Sep 2012 17:02:13 +0000 (19:02 +0200)
committerAndreas Färber <afaerber@suse.de>
Fri, 21 Sep 2012 13:12:59 +0000 (15:12 +0200)
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>
target-i386/cpu.c

index 7c0953f81e5e9137ce0eff78e9ae59d4de703186..c2e65ea31175ce0a8d2b207323de22859c04b204 100644 (file)
@@ -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;