Commit Graph

34 Commits

Author SHA1 Message Date
David Guillen Fandos 6770e0a5e7 Minor improvements in ARM stubs
This gets rid of stack usage (except for callback invocations) in the
dynarec execution code. A requirement to make the dynarec re-entrant.
2021-03-04 18:35:48 +01:00
David Guillen Fandos 8d52e613c7 Minor cleanup in ARM and MIPS
Fix some small issues, mainly associated with undefined behaviour
expressions
2021-02-12 21:47:35 +01:00
David Guillen Fandos 2c6026cfe5 Move r15 to reg_a0 (instead of reg_mem)
I think this does not make a difference at all in the code, since PC is
treated in a special way anyway (reloaded with an immediate when read
and treated as an indirect branch when written). However for the sake of
completeness I'm undoing what I did. (The comma fix stays :P)
2021-02-10 02:53:26 +01:00
David Guillen Fandos 7aaa280b9f Fix ARM dynarec
Turns out there were a couple of very interesting and hard to track
bugs. A missing comma made the reg list too short, leaving the 31th
element at the mercy of the linker ordering algorithm, which seems to
work in some cases depending on the compiler version.
Also the cache flush code seemed not to work on my machine (OGA),
not sure why it wored in the past :/
2021-02-10 02:46:45 +01:00
twinaphex 679006a296 Add more forward declarations 2020-10-08 15:51:24 +02:00
twinaphex 4181385f39 Add forward declarations 2020-10-08 15:47:37 +02:00
Francisco José García García 6bfb7e1b47 (VITA) Dynarec working 2016-10-03 20:19:11 +02:00
Francisco José García García 44b63e7d28 (VITA) Dynarec WIP 2016-08-14 18:28:25 +02:00
Francisco José García García 6ab0992ecf (VITA) Dynarec WIP 2016-08-08 00:31:21 +02:00
twinaphex dd86f4df9a Add MSB_FIRST ifdefs 2015-07-30 03:01:40 +02:00
Twinaphex d10c4afea2 Get rid of function_cc 2014-12-20 09:14:38 +01:00
twinaphex 9ed950fd4e arm/video_blend.S - add another __MACH__ hack 2014-12-11 19:05:18 +01:00
twinaphex 8d7b204c2b (ARM ASM) Add __MACH__ hack to get iOS port linking for now 2014-12-11 19:03:08 +01:00
twinaphex 5b59ef3acc Reimplement cache invalidation code 2014-12-11 18:47:48 +01:00
twinaphex 97166d5cbd Remove warm, keep only fallback cache invalidation routine.
Not available on iOS/Android, only probably there on OpenPandora.
On top of that iOS 8+ deprecated the system() call, so would
probably be becoming obsolete on that platform.
2014-12-11 16:58:34 +01:00
twinaphex d6c3c8dee6 (iOS) Compatibility patches pt. 1 2014-12-11 16:36:30 +01:00
twinaphex 89feda2e3e (ARM ASM) Use .globl instead of .global 2014-12-11 04:57:55 +01:00
twinaphex 7e7383531b warm.h - change linux/ioctl.h include into sys/ioctl.h include 2014-12-10 18:28:46 +01:00
twinaphex 512f7f5b27 Code nits - get rid of '== NULL' / '!= NULL' 2014-12-10 16:40:43 +01:00
aliaspider a926a68eb3 cleanups 2014-12-10 12:53:26 +01:00
twinaphex fe19474dca Add macro parameter 'opcode' to some macros 2014-12-10 01:17:37 +01:00
aliaspider 9f97113292 fix compiler error: initializer element is not a compile-time constant 2014-12-10 00:20:41 +01:00
twinaphex a8ff99c68b Take out NEON CPU filters 2014-07-14 04:59:32 +02:00
twinaphex 30b95e686b Take out GIZMONDO/POCKETPC ifdefs 2014-07-14 04:57:32 +02:00
notaz e38fee1b96 integrate M-HT's neon scalers 2012-10-02 01:06:32 +03:00
notaz c95affa70d merge an assorment of calc84maniac's fixes. 2012-09-18 01:30:43 +03:00
notaz 804e743b41 handle div by 0 2011-09-08 01:39:47 +03:00
notaz 8f91b883fc use single literal pool in arm_stub
..to reduce dcache trashing
2011-09-08 00:48:33 +03:00
notaz 1e02ad6bbd mask off arguments for write hadlers
newer gcc wants this
2011-09-08 00:48:27 +03:00
notaz fe1130691e fix unaligned read
it's causing a fault on Linux
2011-09-06 00:18:06 +03:00
notaz bbba320911 enable -Wall and fix warnings reported by it 2011-09-06 00:18:06 +03:00
notaz 0a74ef66e1 drc: fix eabi alignment 2011-09-04 17:37:46 +03:00
notaz c21718e922 move warm too 2011-09-03 01:58:52 +03:00
notaz d5e0983c10 move platform-independent stuff out of /gp2x. 2011-09-02 17:44:41 +03:00