| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The command line tools from Xcode 4.3 create an incorrect implicit definition
for a couple of functions which causes compilation to fail due to the actual
definition not matching the implicit one the compiler creates.
This patch adds explicit definitions alongside the other forward function
definitions for the functions which cause compilation to fail.
[updated: initial commit had the file in the wrong location]
Signed-off-by: Al Sutton <al@funkyandroid.com>
|
| |\ \ \ \ |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This is a cherry-pick from upstream to fix build errors on some Linux
distros. Problem and patch pointed out by "quho" -- thanks!
Upstream changeset: http://hg.libsdl.org/SDL/rev/e1264a758d50
Change-Id: I423c6ce2dfd7c6e53954b6fe76b156f12ae643f2
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Change-Id: I59c9e58c568a70855783e57514fec80b711d6a64
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixed the following for the new compiler
1. android/camera/camera-capture-windows.c:
Added "#include <windows.h>"
2. SetClassLong() is deprecated. GCL_HICON doesn't exist in _WIN64.
Replacted it with SetClassLongPtr(h, GCLP_HICON, icon)
3. [v]asprintf now actually exisit in libray. Changed the prototype
to match the standard ones but will remove them later for GCC 4.5 and up.
4. Renamed _set_errno to set_errno because it exists in stdlib.h.
Renamed _fix_errno to fix_errno for consistency.
5. EAI_NODATA and EAI_NONAME become the same things.
6. ddk/*h don't exisit. tap-win32.c actually only needs winioctl.h which
provide constants. I have make sure they got the same constants in
both old and new mingw compilers
7. #undef DELETE before redefining it for KEY_CODE in hw-events.h because
DELETE is defined to be a constant in standard header.
The above don't break the old one (ie. /usr/bin/i586-mingw32msvc-*)
Change-Id: Ic7d13fd0fd237d433f923ee01c6ce50f5c02f095
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When emulator is lunched from its own directory (ie. cd out/*/bin; ./emulator),
emulator fails to locate shared libraries lib*GL at out/*/lib because utility
function path_parent(".", 1) incorrectly returns NULL instead of "..".
Fixed that case.
Change-Id: I86f8e5d655107ae8cd2237d59518180ce6e69c53
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
pc-bios was recently moved to new directory. Change emulator to
search in new path in standalone mode (built in external/qemu
and run from external/qemu/objs). To be specific, change
../../../prebuilt/common/pc-bios/
to
../../../prebuilts/qemu-kernel/x86/pc-bios/
Change-Id: Id79534349394c9b47f8ef5dda76f2a21268b58fe
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There are cases when 'accept' message that guest adbd sends via qemu pipe to the emulator
get broken into pieces: once 4 bytes are delivered, and then the remaining two. This breaks
the protocol, as emulator assumes that all 6 bytes would be delivered in one chunk. This CL
adjusts that by accumulating messages in a buffer, and analyzing them only when collected
message length reaches certain point.
Change-Id: Ice25625f65bbaa2b07677c3285bf75e7bf46fbb7
|
| |/ / /
| | | |
| | | |
| | | | |
Change-Id: I732fa0d756656ad9976eddd06b16644e208aa512
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
android/sdk-control-socket.* has replaced android/android-device.* as the back-bone
of communicating with SDK controller on the device. The major differences are:
- New communication protocol uses just one (async) socket connection to communicate
with the device (the old one used two sockets: one sync, and another - async).
- New communication protocol connects to one TCP port (1970 in this CL) for all emulation
ports. Channel multiplexing is done by using port names, and assigning a separate socket
for communication inside each separate port. The old protocol had separate TCP ports for
each emulation ports (1968 for sensors, and 1969 for multi-touch)
Change-Id: I779fcbdfba2f9b4c433a9d76a567975708b00469
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I1be43697ee04f46c5839c4d23e461d54eefc450f
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Statically linked emulator is easy to setup in sandboxed environment.
With this and BUILD_HOST_static in build/ (seperate CL), statically-linked
SDK tools can be built with the following command
BUILD_HOST_static=1 make PRODUCT-sdk-aapt adb aidl dexdump fastboot \
llvm-rs-cc dmtracedump emulator emulator-arm emulator-x86 \
etc1tool hprof-conv mksdcard sqlite3 zipalign
No need to build HW GL libraries (libOpenglRender, libGLES_CM_translator,
libGLES_V2_translator and libEGL_translator) because statically-linked
emulator doesn't support audio and graphics. (eg. -no-window)
Change-Id: I209287a00f66295b8b8135451025428f03776a1a
|
| |\ \ \ \
| | |/ / /
| |/| | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- Allow building with OpenGL ES acceleration disabled, avoiding a
dependency on stuff outside the QEMU project.
- Allow the standalone configure.sh to provide the include/lib path
for the OpenGL ES libraries.
- Update the default OpenGL ES include path for standalone builds.
Change-Id: I03f4627af4c271783b65a116ceb5934385c68cdc
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
GCC on OS X is flagging a duplicate declaration error even though GCC
on Linux isn't even warning about it. Not sure why. The declaration is
duplicated, but identical. Renaming one of the two.
Change-Id: I946b5f3a4e410b66e9ab2ae3160ff1bec4e0ddd7
|
| |\ \ \ \
| | |/ / /
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The following changes are crucial for GPU H/W acceleration because
some graphics applications like games perform very frequent QEMU pipe
operations to send GLES commands to the host translator.
For each read/write buffer operation, currently QEMU pipe requires five
MMIO operations.
This causes significant overhead when running with hardware virtualization
enabled (e.g. HAXM) because each MMIO causes expensive transition from
the guest kernel to the kernel driver, and to the QEMU user space in the end.
Among such five MMIO accesses, four of them are required to just set up the
parameters for the access, like the buffer address, length etc. By passing
a buffer containing such parameters, we need only one MMIO operation to
send a GLES command to the host translator.
Update the qemu_pipe save version for pipe struct changes.
Change-Id: Idf6400f3c4c9c8473311312bb1d8f3ea92d68797
Signed-off-by: Xin, Xiaohui <xiaohui.xin@intel.com>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Nakajima, Jun <jun.nakajima@intel.com>
|
| |\ \ \ \ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The emulator opengles.c file duplicated the function declarations from
libOpenglRenderer's render_api.h instead of including it directly.
This led to multiple bugs since the declarations didn't actually
match, but there was no way for the compiler or dynamic loader to
check this.
This change makes opengles.c include render_api.h to get function
pointer prototypes, and changes the prototypes/implementation as
necessary to make both sides actually match. It should be much more
difficult to introduce interface mismatch bugs now.
Two bugs this change would have prevented:
(a) The interface mismatch caused by inconsistent branching which led
to GPU acceleration crashing on Windows. With this change, we
would have caught the problem at compile time.
(b) The emulator verbose log has always been printing "Can't start
OpenGLES renderer?" even when the renderer started fine. This is
because the renderer was returning a bool (true == success) but
the emulator's declaration said it returned int, and the emulator
assumed 0 meant success. This difference in return type should now
be caught at compile time.
Change-Id: I5b3c70c9a40854332d67e37333acd6edb6ad01f6
|
|\ \ \ \ \ \
| | |_|_|_|/
| |/| | | |
| | | | | | |
https://android.googlesource.com/platform/external/qemu into aosp
|
| |\ \ \ \ \
| | |/ / / /
| |/| | | | |
|
| | |\ \ \ \ |
|
| | | |\ \ \ \
| | | | |/ / /
| | | |/| | | |
|
| | | | |\ \ \ |
|
| | | | | |\ \ \ |
|
| | | | | | |\ \ \
| | | | | | | |/ /
| | | | | | |/| | |
|
| | | | | | | |\ \ |
|
| | | | | | | | |\ \ |
|
| | | | | | | | | |\ \ |
|
| | | | | | | | | | |\ \ |
|
| | | | | | | | | | | |\ \ |
|
| | | | | | | | | | | | |\ \ |
|
| | | | | | | | | | | | | |\ \ |
|
| | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | |/ /
| | | | | | | | | | | | | |/| | |
|
| | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | | | | | | | |\ \ \ |
|
| | | | | | | | | | | | | | | | | | | | | |\ \ \
| | | | | | | | | | | | | | | | | | | | | | |_|/
| | | | | | | | | | | | | | | | | | | | | |/| | |
|
| | | | | | | | | | | | | | | | | | | | | | |\ \ |
|
| | | | | | | | | | | | | | | | | | | | | | | |\ \ |
|
| | | | | | | | | | | | | | | | | | | | | | | | |\ \ |
|