#include "../r3000a.h"
#include "../psxinterpreter.h"
#include "../psxhle.h"
-#include "../new_dynarec/events.h"
+#include "../psxevents.h"
#include "../frontend/main.h"
}
static void hw_write_byte(struct lightrec_state *state,
- u32 op, void *host, u32 mem, u8 val)
+ u32 op, void *host, u32 mem, u32 val)
{
lightrec_tansition_to_pcsx(state);
}
static void hw_write_half(struct lightrec_state *state,
- u32 op, void *host, u32 mem, u16 val)
+ u32 op, void *host, u32 mem, u32 val)
{
lightrec_tansition_to_pcsx(state);
static bool lightrec_can_hw_direct(u32 kaddr, bool is_write, u8 size)
{
+ if (is_write && size != 32) {
+ // force32 so must go through handlers
+ if (0x1f801000 <= kaddr && kaddr < 0x1f801024)
+ return false;
+ if ((kaddr & 0x1fffff80) == 0x1f801080) // dma
+ return false;
+ }
+
switch (size) {
case 8:
switch (kaddr) {