History log of /external/qemu/android/main-emulator.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
342a01fc826881e6b12b7673c7d2c280295f4d9e 21-Jun-2012 Duane Sand <duanes@mips.com> [MIPS] Fix startup segfault in emulator64-mips

Avoid truncation of 64-bit host addresses for 32-bit Mips physaddrs.
Revert workaround I17fe688d19e3cd7f328721e6363bacd6e6689ca;
allow emulator to again default to emulator64-mips.

Change-Id: I0c83d8bf60fc52a758b84d8131b2bad53375aa61
Signed-off-by: Duane Sand <duanes@mips.com>
/external/qemu/android/main-emulator.c
9e15745b9f828db4eedf90a811becac95e02d5d3 04-May-2012 Duane Sand <duanes@mips.com> Emulator64-mips segfaults, disable it for now.

Signed-off-by: Duane Sand <duanes@mips.com>

Change-Id: I17fe688d19e3cd7f328721e6363bacd6e6689ca2
/external/qemu/android/main-emulator.c
ddd4ef7f7c8d07e95dc88ca897634f537666d5f3 21-Mar-2012 Andrew Hsieh <andrewhsieh@google.com> New option '-force-32bit' to always use 32-bit emulator on 64-bit platforms

Useful for both QA and trouble-shooting

Change-Id: I09eac8b94e29e8a201188bf17d3511c15cfee4b4
/external/qemu/android/main-emulator.c
c7389bd69e570a2c8432b37399aff1976b021f0f 13-Mar-2012 Andrew Hsieh <andrewhsieh@google.com> 64-bit emulator

Patch to allow emulator searches for emulator64-${ARCH} first on
64-bit OS. If none is found, the original behavior which searchs
for 32-bit emulator-${ARCH} is performed as usual.

64-bit emulator (which still emulates Android built in 32-bit) offers
up to 20% speedup compared to its 32-bit counterpart.

Details:

android/main-emulator.c
1) search emulator64 based on the OS
2) dlopen lib64OpenglRender in 64-bit

Makefile.*
1) Rules to build 64-bit executable emulator64-{x86,arm} and libraries
emulator64-{libui,libqemu,target-i386,target-arm,libelff,common}
2) remove -Wa,-32
3) Changes prebuit toolchain path

android-configure.h
android/build/common.h
1) no longer force 32-bit build (because now prebuilts/tools/gcc-sdk/gcc
can now handle 64-bit
2) set ANDROID_PREBUILTS to correctly locate ccache

android/config/*/config-host.h
1) Detect HOST_X86_64 and HOST_X86_64/HOST_I386

Misc 64-bit porting clean-up
1) use %zx to print variable of type size_t in hex
2) use %zu to print variable of type size_t in dec
3) Initialize query_parm to NULL
4) use PRIu64 to replace PDUd64
5) use PRId64/PRIu64/PRIX64 to print 64-bit
6) drop PRUx64 because PRIx64 does the same
7) cast pointer arith to intptr_t before casting to int
8) fixed 1ULL<<63

Change-Id: Ife62a20063a6ec38d4a9b23977e840af1fce149a
/external/qemu/android/main-emulator.c
dca64d13258f05ec3385403a99eff7da4773ce24 13-Sep-2011 David 'Digit' Turner <digit@google.com> emulator: fix Win32 runtime crash

Change-Id: I5ca4b1393211c1d8a5caba332c3f6164afb4661b
/external/qemu/android/main-emulator.c
bfcfa46044116a54ebe11ee2881142fd38a87939 24-Aug-2011 David 'Digit' Turner <digit@android.com> emulator: probe shared library search path

This patch modifies the 'emulator' launcher program to probe
for a adequate directory containing shared libraries that will
be required by the emulator core to implement GLES emulation
properly.

It does that by looking for a library named libOpenglRender.so
(or .dll, or .dylib depending on the platform) in various directories
around the one containing the executable program.

When such a directory is found, it modifies the value of the PATH
or LD_LIBRARY_PATH environment variable before calling exec()

This is necessary because there is no way to change the list
of search directories at runtime, i.e. between the program's start
and the moment it calls dlopen() to load such a library.

Change-Id: I7346d26597382f44931cdf08936b051e74d3641a
/external/qemu/android/main-emulator.c
add001c9d30ef442e87ee18ec59342929401bd49 15-Jul-2011 David Turner <digit@android.com> Fix Windows space-in-path handling for 'emulator'.

This modifies the 'emulator' launcher program to work
correctly on Windows when it is installed in a path that
contains spaces.

The program computed the path of the program to be launched
correctly, but it turns out that the problem is in the
implementation of execv() in either mingw or MSVCRT.DLL:

experimentation shows that one needs to quote argv[0] when
it contains spaces. However, you must *not* quote the first
argument to execv(), otherwise the call will fail.

Change-Id: If291c5a8bd507f96b40634ecbc946ba38346ee4e
/external/qemu/android/main-emulator.c
2d238fd9871687b1557f15b8878a6cf3e9634b57 25-Mar-2011 David 'Digit' Turner <digit@android.com> Add 'emulator' launcher program.

This patch renames the current ARM-specific emulator binary to 'emulator-arm'
and introduces a new tiny (less than 20KB) 'emulator' launcher program.

The role of 'emulator' is to launch either 'emulator-arm' or 'emulator-x86'
based on the target AVD or platform build being used.

This program will be replaced in the future by what is currently known
as 'emulator-ui', but is a good placeholder until this work is completed.

+ Move some utility functions from android/avd/info.[hc] to
android/avd/util.[hc] so that 'emulator' can use them directly.

IMPORTANT: For platform builds, the target architecture is detected
automatically by parsing the build.prop file.

For SDK AVDs however, there is no easy way to determine the
target architecture, so the patch adds a new hw.cpu.arch
property which can have value 'arm' or 'x86'

Change-Id: I0084c196695a75c8b9230ba716b3cd2e12610ded
/external/qemu/android/main-emulator.c