2019-06-08 11:04:35 +00:00
|
|
|
/*
|
|
|
|
Created on: Apr 11, 2019
|
|
|
|
|
|
|
|
Copyright 2019 flyinghead
|
|
|
|
|
|
|
|
This file is part of reicast.
|
|
|
|
|
|
|
|
reicast is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
reicast is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with reicast. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2019-05-23 09:40:33 +00:00
|
|
|
#include "_vmem.h"
|
2019-04-29 16:23:00 +00:00
|
|
|
|
2019-05-24 16:19:33 +00:00
|
|
|
bool vmem32_init();
|
2019-04-29 16:23:00 +00:00
|
|
|
void vmem32_term();
|
2019-05-26 11:30:05 +00:00
|
|
|
bool vmem32_handle_signal(void *fault_addr, bool write, u32 exception_pc);
|
2019-04-29 16:23:00 +00:00
|
|
|
void vmem32_flush_mmu();
|
2019-06-19 12:49:14 +00:00
|
|
|
void vmem32_protect_vram(u32 addr, u32 size);
|
|
|
|
void vmem32_unprotect_vram(u32 addr, u32 size);
|
2019-05-24 16:19:33 +00:00
|
|
|
|
|
|
|
extern bool vmem32_inited;
|
2019-04-29 16:23:00 +00:00
|
|
|
static inline bool vmem32_enabled() {
|
2019-05-24 16:19:33 +00:00
|
|
|
return vmem32_inited;
|
2019-04-29 16:23:00 +00:00
|
|
|
}
|