From 9770110c600709b03f62b7608105973dbe419f1e Mon Sep 17 00:00:00 2001 From: LittleCube Date: Fri, 27 Jun 2025 04:34:46 -0400 Subject: [PATCH] dkr fixes --- librecomp/src/math_routines.cpp | 2 +- librecomp/src/pi.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/librecomp/src/math_routines.cpp b/librecomp/src/math_routines.cpp index bb1f207..4d6a01d 100644 --- a/librecomp/src/math_routines.cpp +++ b/librecomp/src/math_routines.cpp @@ -81,7 +81,7 @@ extern "C" void __ull_to_f_recomp(uint8_t * rdram, recomp_context * ctx) { ctx->f0.fl = ret; } -extern "C" void __ull_rshift_recomp(uint8_t * rdram, recomp_context * ctx) {Add commentMore actions +extern "C" void __ull_rshift_recomp(uint8_t * rdram, recomp_context * ctx) { uint64_t a = (ctx->r4 << 32) | ((ctx->r5 << 0) & 0xFFFFFFFFu); uint64_t b = (ctx->r6 << 32) | ((ctx->r7 << 0) & 0xFFFFFFFFu); uint64_t ret = a >> b; diff --git a/librecomp/src/pi.cpp b/librecomp/src/pi.cpp index dcfed71..d7ebd53 100644 --- a/librecomp/src/pi.cpp +++ b/librecomp/src/pi.cpp @@ -67,7 +67,6 @@ void recomp::do_rom_read(uint8_t* rdram, gpr ram_address, uint32_t physical_addr // TODO handle misaligned DMA assert((physical_addr & 0x1) == 0 && "Only PI DMA from aligned ROM addresses is currently supported"); assert((ram_address & 0x7) == 0 && "Only PI DMA to aligned RDRAM addresses is currently supported"); - assert((num_bytes & 0x1) == 0 && "Only PI DMA with aligned sizes is currently supported"); uint8_t* rom_addr = rom.data() + physical_addr - recomp::rom_base; for (size_t i = 0; i < num_bytes; i++) { MEM_B(i, ram_address) = *rom_addr;