mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-02-23 21:29:00 +00:00
ppcmmu: Move defines to the top.
This commit is contained in:
parent
c9aed600b6
commit
de73a36399
@ -32,6 +32,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
#include <loguru.hpp>
|
#include <loguru.hpp>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
//#define MMU_PROFILING // uncomment this to enable MMU profiling
|
||||||
|
//#define TLB_PROFILING // uncomment this to enable SoftTLB profiling
|
||||||
|
|
||||||
/* pointer to exception handler to be called when a MMU exception is occurred. */
|
/* pointer to exception handler to be called when a MMU exception is occurred. */
|
||||||
void (*mmu_exception_handler)(Except_Type exception_type, uint32_t srr1_bits);
|
void (*mmu_exception_handler)(Except_Type exception_type, uint32_t srr1_bits);
|
||||||
|
|
||||||
@ -43,9 +46,6 @@ std::function<void(uint32_t bat_reg)> dbat_update;
|
|||||||
PPC_BAT_entry ibat_array[4] = {{0}};
|
PPC_BAT_entry ibat_array[4] = {{0}};
|
||||||
PPC_BAT_entry dbat_array[4] = {{0}};
|
PPC_BAT_entry dbat_array[4] = {{0}};
|
||||||
|
|
||||||
//#define MMU_PROFILING // uncomment this to enable MMU profiling
|
|
||||||
//#define TLB_PROFILING // uncomment this to enable SoftTLB profiling
|
|
||||||
|
|
||||||
#ifdef MMU_PROFILING
|
#ifdef MMU_PROFILING
|
||||||
|
|
||||||
/* global variables for lightweight MMU profiling */
|
/* global variables for lightweight MMU profiling */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user