History log of /external/qemu/target-mips/translate.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
86b1fb06ee6ef53d8961ce96343ba4aa37518840 21-Mar-2014 David 'Digit' Turner <digit@google.com> tcg: Upgrade to upstream version.

This switches the full TCG implementation to the upstream version
from the following upstream commit:

1a8e80d7e82aa385ad887dba5d039e399a18264b

Note that this requires completely reqwriting the softmmu_template.h
declarations to adapt to the new world order where all ld/st helpers
now accepts a CPUArchState* value as their first parameter.

+ This also gets rid of the REGPARM macro, which means that on
i386, parameters are now passed on the stack instead of using
registers. As surprising as it is, this doesn't seem to affect
emulation performance in significant ways when starting the
emulator with -force-32bit, compared to the latest SDK emulator
binary. This may be due to the improved binary translator.

Note that this doesn't switch the emulation to use the new
MemoryRegion API, so there are still a few minor differences
with upstream softmmu_*.h headers.

The target-*/ sources have been minimally modified to accomodate
for the changes, and everything seems to work. However, not that
CONFIG_ANDROID_MEMCHECK_MMU hasn't been tested yet.

+ get rid of obsolete softmmu_outside_jit.c

NOTE: There are two important differences with the upstream sources:

- An '#undef small' in tcg.c used to build the Windows binaries
with mingw32 on Linux.

- The declaration of cc_compute_all and cc_compute_c helpers in
target-i386/helper.h use TCG_CALL_NO_SE instead of
TCG_CALL_NO_SE_RWG. Otherwise, it's impossible to boot
an x86 system image properly.

Change-Id: I6ed5c58f237493d29b1cefaff3e0db6f58977fbf
/external/qemu/target-mips/translate.c
bf7a22f3a6c38d359d2e933dec4706d1c7375f0a 25-Mar-2014 David 'Digit' Turner <digit@google.com> Move cpu_xxx functions to qom/cpu.h

This patch moves a few CPU-releated function declarations to
include/qom/cpu.h, while changing their signature to take a
CPUState instead of a CPUOldState.

Change-Id: I5f09b522dc755be334973a27f58b6704fbccc4c6
/external/qemu/target-mips/translate.c
fed223d2bab55eda155e3463b9cb6966e69dd73c 24-Mar-2014 David 'Digit' Turner <digit@google.com> Move singlestep_enabled to CPUState.

The previous patch forgot to move this field from CPU_COMMON to
CPUState, so do it here.

Change-Id: I71ed4605c939eb6c23d3e70b08ea89e59842cdd0
/external/qemu/target-mips/translate.c
6657678c3d86395084f6a699e73614195f06c445 24-Mar-2014 David 'Digit' Turner <digit@google.com> Introduce CPUState.

This patch splits the definitions previously found in CPUArchState,
to place some of them in a common data structure called CPUState,
to mirror upstream.

Note that upstream also makes CPUState a complete QOM object that
derives from DeviceState / DeviceClass, but this patch doesn't do
that. That's why the target-*/cpu-qom.h files, as well as
include/qom/cpu.h are not the real ones from upstream yet.

Future patches will get rid of CPUOldState, which is currently used
as an alias for CPUArchState, but will be replaced entirely by
CPUState, requiring changing the signature of many functions to
match upstream.

QOM-ification will probably happen after that, but may require
a few more patches due to layering / coupling issues.

Change-Id: Ifc33f8abe2aa80b20da13f5c83c109e37aff7e11

Conflicts:
cputlb.c
target-arm/op_helper.c
target-i386/op_helper.c
target-mips/op_helper.c
/external/qemu/target-mips/translate.c
cd35ed2793febb8f8fa19ad4e0052dba915d7c88 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to atomic load/store helpers.

IMPORTANT NOTE: This contains a gross hack to route around a very
nasty GCC 4.6 compiler bug (on Linux), that prevented helper_ll()
from being compiled correctly, resulting in failure to boot a
valid MIPS system image!!

Change-Id: I20f084e3966a7160cd283f2aa4d391799abc667c
/external/qemu/target-mips/translate.c
26efe758c079d8be435ec74470731237cd777c1d 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to MIPS MT helpers.

Change-Id: Id238063e31dd54f8c7e7ae5f5b9c054136c4d87f
/external/qemu/target-mips/translate.c
06978cc902013686f4443582e55361f0d86fbc2e 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to coprocessor helpers.

Change-Id: Ia673b0a09e966e3f8ccbab7ab27ec799d102ae88
/external/qemu/target-mips/translate.c
5c5a6e13ddb15cd1178071c60f0f22d265819021 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to multiplication helpers.

Change-Id: I1b1b534a9e231743ad258c9ff132d64c1ca390e6
/external/qemu/target-mips/translate.c
87350d189097667bf170a57ee54347498511dfb6 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to FPU helpers.

Change-Id: Iac18a07f8ad4400932395973c03e6ff5b0a0dacd
/external/qemu/target-mips/translate.c
d62e538a5a9627bb1306ba14130699aaba9b585f 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to non-atomic load/store helpers.

Change-Id: Ia652eb3212eb05e4bf726b1372fbee9624aa05a3
/external/qemu/target-mips/translate.c
d5b76c63cc364a51cfd4ba45e2449c907a0a2e97 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to special functions #2

Change-Id: I1105f12059a25542503478fde35253709354f867
/external/qemu/target-mips/translate.c
6480c96e71da41f7600478bc0d809f737090b35f 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to special helpers.

Change-Id: I269c53d4d26a60dd1b311ffcc58c3ec2d890207b
/external/qemu/target-mips/translate.c
758fa08712c9b1075c49adf86fd0a24c8fdb30ec 03-Apr-2014 David 'Digit' Turner <digit@google.com> target-mips: Pass env to TLB helpers

Change-Id: Iea68dbfa2dfc4ff72d21f4bb71775229e2ed3f8f
/external/qemu/target-mips/translate.c
bf2340f1eae08ddada9ed09490aa83e0a1bd7586 18-Mar-2014 David 'Digit' Turner <digit@google.com> cpu-exec: unify do_interrupt call

Upstream e694d4e289b05d0c9b118850eff961aa9ca33183
Upstream 3c688828bcb3afa2744e1f1729a40eef4a575b56
Upstream d8108fb187bb68459cfe7dca4b5c983db33bcc7b

Change-Id: Ia492dae677ddfe052768b943f8ea275fab8a9c49
/external/qemu/target-mips/translate.c
26d285dfa9f482e5b2f6d6df2bcb0eaed06cb1a9 18-Mar-2014 David 'Digit' Turner <digit@google.com> tcg: Use hash table + static table for helpers.

This changes the registration of helper functions inside of TCG to:

- Use a GHashTable to store the map from helpers to function names.
- Move the helper registration from targets to tcg.
- Merge tcg_register_helper into tcg_context_init.

Note: this makes TCG more dependent on target helper.h headers, it
adds significant coupling, but so be it.

Upstream 7c57df0d852a9a9faf9068ff235886c8b28b113e
Upstream 6e085f72c6d331fb0e9fc69e3061cd1e5893d9e4
Upstream 5cd8f6210f83db15702e81b91e40e7079608e6f3
Upstream 100b5e0170e86661aaf830869be930a1a201ed08
Upstream 84fd9dd3f78ced9d41e1160d43862bb620cb462a

Change-Id: Ie0877cf9a62451d89881e882d06d04456e5abe1b
/external/qemu/target-mips/translate.c
eca7bc24e45fb6809582795ff88f13384b5ce7df 14-Mar-2014 David 'Digit' Turner <digit@google.com> softmmu_header.h: Pass CPUArchState to helper routines.

This patch modifies the functions defined in softmmu_header.h
to accept a CPUArchState as their first parameter, then it
adjusts every caller appropriately.

This gets up closer to upstream, and remove the obsolete
softmmu_outside_jit.h that was used to do the same thing.

Change-Id: I9eef01e95b7233c8c6f6da43d17262b9a9ebcd99
/external/qemu/target-mips/translate.c
975bba804aed54452f774cdbf79a7b4732fc7696 17-Feb-2014 David 'Digit' Turner <digit@google.com> Augment TCGContext.

This moves many static buffers into the TCGContext data structure
to match upstream. This shouldn't affect performance.

Change-Id: Ib1fc7cf2baef155f1eaadbf9bfd9e2d381606a07
/external/qemu/target-mips/translate.c
e2678e116c8cdb0f36b247a5bd9cfacc849362fc 16-Jan-2014 David 'Digit' Turner <digit@android.com> Rename CPUState to CPUOldState.

Upstream qemu has split the cpu state into two new data structures:

CPUState -> is used to model the CPU state through the QEMU
object model.

CPUArchState -> actually a macro that aliases CPUArmState,
CPUX86State or CPUMIPSState.

Both were part of the "CPUState" in the current emulator sources.

Previous patches introduced CPUArchState, as a simple alias to the
machine-specific state. This patch renames any use of CPUState in
the current code to CPUOldState, except within target-*/ directories
where it is replaced by CPU${ARCH}State instead.

This will allow bringing the upstream CPUState definition in the
source tree, and slowly migrate everything to the right location.

Change-Id: I88b79e6e89f1f36084dc2642e1cf415135e4da09
/external/qemu/target-mips/translate.c
0dc43a9a7d4ed798d2c53792fe30a907f81d7615 16-Jan-2014 David 'Digit' Turner <digit@android.com> disas.c: upstream integration.

Change-Id: I64d91412a766abfe8ee0b530ed7cd5f2be63b91f
/external/qemu/target-mips/translate.c
a2c14f947951612b45024095afd2210aa7368773 04-Feb-2014 David 'Digit' Turner <digit@google.com> Cleanup: Remove 100+ compiler warnings.

This is a big cleanup that removes compiler warnings by performing
the following:

- Remove unused functions or variables.
- Change pointer cast to be alias safe using unions.
- Use __attribute__((unused)) on some local variable definitions
when their usage depends on conditional defines that are not
always true when compiling the same source several times.
- Fix a couple array indexing bugs.

There are still a few warnings from the JSON lexer, libjpeg and
the TCG helpers though, but the overall compilation is much cleaner.

BUG=NONE

Change-Id: Ic4483e6402b266ecfd7bca8c92a73d8fcf392a1f
/external/qemu/target-mips/translate.c
aa8236dc1b1ea300ab18716db5b8fab42aca3ca7 10-Jan-2014 David 'Digit' Turner <digit@android.com> qemu-malloc.c: Remove qemu-specific heap routines.

Remove all uses of qemu_malloc/malloc0/realloc/free/strdup/etc to use
the equivalent GLib functions (g_malloc, g_free, ...) as per upstream.

This also removes qemu-malloc.c since it's no longer required.

Change-Id: I3c36a0396b73dd114b8da385b43f56a2e54dbb15
/external/qemu/target-mips/translate.c
cc33b2d8035092608c7cba4154e9c44452727e1b 15-Dec-2013 David 'Digit' Turner <digit@android.com> Move disas.h to include/disas/

+ dis-asm.h -> include/disas/bfd.h

+ arm-dis.c -> disas/arm.c
ppc-dis.c -> disas/ppc.c
i386-dis.c -> disas/i386.c
mips-dis.c -> disas/mips.c

+ remove all unused .ld scripts

Change-Id: Ie29662b83c09ea17d34e42dda3998691c182b10e
/external/qemu/target-mips/translate.c
852088c7e08182c2de563872d558309815cbfa0d 14-Dec-2013 David 'Digit' Turner <digit@android.com> Move headers to include/exec/

Change-Id: Ife43f9cd12a02aa98f408043b0cccb9fe45a9ff7
/external/qemu/target-mips/translate.c
3d781249996e548010a28caae437257d91f66001 22-Sep-2012 Dusan Milosavljevic <Dusan.Milosavljevic@rt-rk.com> [MIPS] Avoid splitting TB's at page boundary for branch instructions.

If a branch occurred at last word of page, the delay slot instruction
would be in a separate TB in following page. This causes TB invalidation
problems if the branch target is patched, i.e., in JIT code.

Fixes some rare v8 browser and test-suite crashes on qemu for mips.

Change-Id: I62946b7e724f71b880225df0a888614a9e64e3bf
/external/qemu/target-mips/translate.c
55ff318b4e5382074e2049c996cb6df1041aff1b 03-Aug-2012 Chris Dearman <chris@mips.com> [MIPS] Speed up software refill handler

Emulating each instruction of the software refill handler
has a significant impact on the overall performance of QEMU because
of the overhead of emulating the various CP0 instructions to accurately
reflect the machine state. Running the software TLB handler takes
the equivalent of 1000's of machine cycles.

This patch implements a pseudo hardware TLB refill handler
that significantly reduces the impact of refilling the TLB
to bring it more inline with what would be observed on a real target.

Signed-off-by: Steven Hill <sjhill@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Yajin <yajin@mips.com.cn>
/external/qemu/target-mips/translate.c
325e19d19ff9e1fc9c6acb12eeb754563fc2e251 01-Feb-2012 Bhanu Chetlapalli <bhanu@mips.com> [MIPS] Tweak MIPS support to work in Android qemu framework

Change-Id: Icd617cb91fe87a6f88566dd57b6405b216ca3570
Signed-off-by: Chris Dearman <chris@mips.com>
/external/qemu/target-mips/translate.c
409c7b66435cf5947cab6bf0710f92507317f22e 01-Feb-2012 Bhanu Chetlapalli <bhanu@mips.com> [MIPS] Import MIPS target support

From v0.12.5 tag at git://git.sv.gnu.org/qemu.git
CommitID: 174f225e9d62e8f3002e274e4f718bd2a967fbf4

Change-Id: I35b49a4319cee4b69cf9da4e5af1f43327e21056
Signed-off-by: Chris Dearman <chris@mips.com>
/external/qemu/target-mips/translate.c
55f4e4a5ec657a017e3bf75299ad71fd1c968dd3 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/external/qemu/target-mips/translate.c
413f05aaf54fa08c0ae7e997327a4f4a473c0a8d 12-Jan-1970 Upstream <upstream-import@none> external/qemu 0.8.2
/external/qemu/target-mips/translate.c