aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2014-09-09 18:22:59 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-09-09 18:23:00 +0000
commitbb9e36b57b950b2270b5a443d33e24419495d2a9 (patch)
treee3d2f0578edd39df7f1506435a9f05b4821ae6d3
parentc0ba0be329cce1b51c64637e47876050f4450a85 (diff)
parenta5cc052dcfc9725d97d04fd0ebf7d0a1dc9e50b7 (diff)
downloadqemu-ub-tools-idea133-release.tar.gz
Merge "Warn/Panic with x86/64 emulation without KVM/HAXM" into idea133ub-tools-idea133-releaseidea133
-rwxr-xr-xandroid/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/android/main.c b/android/main.c
index a5b479a12a..0182a413b4 100755
--- a/android/main.c
+++ b/android/main.c
@@ -1301,23 +1301,23 @@ int main(int argc, char **argv)
dprint("CPU Acceleration status: %s", accel_status);
}
- // Special case: x86_64 emulation currently requires hardware
+ // Special case: x86/x86_64 emulation currently requires hardware
// acceleration, so refuse to start in 'auto' mode if it is not
// available.
{
char* abi = avdInfo_getTargetAbi(avd);
- if (!strcmp(abi, "x86_64")) {
+ if (!strncmp(abi, "x86", 3)) {
if (!accel_ok && accel_mode != ACCEL_OFF) {
- derror("x86_64 emulation currently requires hardware acceleration!\n"
+ derror("%s emulation currently requires hardware acceleration!\n"
"Please ensure %s is properly installed and usable.\n"
"CPU acceleration status: %s",
- kAccelerator, accel_status);
+ abi, kAccelerator, accel_status);
exit(1);
}
else if (accel_mode == ACCEL_OFF) {
// '-no-accel' of '-accel off' was used explicitly. Warn about
// the issue but do not exit.
- dwarning("x86_64 emulation may not work without hardware acceleration!");
+ dwarning("%s emulation may not work without hardware acceleration!", abi);
}
}
AFREE(abi);