| 890 | } |
| 891 | |
| 892 | void KMemory::writeb(U32 address, U8 value) { |
| 893 | int index = address >> 12; |
| 894 | MMU& mmu = data->mmu[index]; |
| 895 | if (mmu.canWriteRam) { |
| 896 | ramPageGet((RamPage)mmu.ramIndex)[address & 0xFFF] = value; |
| 897 | } else { |
| 898 | data->mmu[index].getPage()->writeb(&data->mmu[index], address, value); |
| 899 | } |
| 900 | } |
| 901 | |
| 902 | U8* KMemory::getRamPtr(U32 address, U32 len, bool write, bool futex) { |
| 903 | U32 index = address >> K_PAGE_SHIFT; |