From: Andreas Färber Date: Mon, 17 Sep 2012 17:02:13 +0000 (+0200) Subject: target-i386: Drop unused setscalar() macro X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=473955e5c3bce09c007ba3b64937cfca6f18f525;p=qemu.git target-i386: Drop unused setscalar() macro It was only used by now removed setfeatures() function. Suggested-by: Igor Mammedov Signed-off-by: Andreas Färber --- diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 7c0953f81e..c2e65ea311 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;