mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
ppcmmu: set type of the profiling variables to uint64_t.
This commit is contained in:
parent
048b4f5f20
commit
0c1c59ffa7
@ -52,17 +52,17 @@ PPC_BAT_entry dbat_array[4] = {{0}};
|
||||
#ifdef MMU_PROFILING
|
||||
|
||||
/* global variables for lightweight MMU profiling */
|
||||
uint32_t dmem_reads_total = 0; // counts reads from data memory
|
||||
uint32_t iomem_reads_total = 0; // counts I/O memory reads
|
||||
uint32_t dmem_writes_total = 0; // counts writes to data memory
|
||||
uint32_t iomem_writes_total = 0; // counts I/O memory writes
|
||||
uint32_t exec_reads_total = 0; // counts reads from executable memory
|
||||
uint32_t bat_transl_total = 0; // counts BAT translations
|
||||
uint32_t ptab_transl_total = 0; // counts page table translations
|
||||
uint32_t unaligned_reads = 0; // counts unaligned reads
|
||||
uint32_t unaligned_writes = 0; // counts unaligned writes
|
||||
uint32_t unaligned_crossp_r = 0; // counts unaligned crosspage reads
|
||||
uint32_t unaligned_crossp_w = 0; // counts unaligned crosspage writes
|
||||
uint64_t dmem_reads_total = 0; // counts reads from data memory
|
||||
uint64_t iomem_reads_total = 0; // counts I/O memory reads
|
||||
uint64_t dmem_writes_total = 0; // counts writes to data memory
|
||||
uint64_t iomem_writes_total = 0; // counts I/O memory writes
|
||||
uint64_t exec_reads_total = 0; // counts reads from executable memory
|
||||
uint64_t bat_transl_total = 0; // counts BAT translations
|
||||
uint64_t ptab_transl_total = 0; // counts page table translations
|
||||
uint64_t unaligned_reads = 0; // counts unaligned reads
|
||||
uint64_t unaligned_writes = 0; // counts unaligned writes
|
||||
uint64_t unaligned_crossp_r = 0; // counts unaligned crosspage reads
|
||||
uint64_t unaligned_crossp_w = 0; // counts unaligned crosspage writes
|
||||
|
||||
#include "utils/profiler.h"
|
||||
#include <memory>
|
||||
@ -483,10 +483,6 @@ static uint32_t ppc_mmu_instr_translate(uint32_t la) {
|
||||
|
||||
/** PowerPC-style MMU data address translation. */
|
||||
static uint32_t ppc_mmu_addr_translate(uint32_t la, int is_write) {
|
||||
#ifdef PROFILER
|
||||
mmu_translations_num++;
|
||||
#endif
|
||||
|
||||
uint32_t pa; /* translated physical address */
|
||||
|
||||
bool bat_hit = false;
|
||||
|
Loading…
Reference in New Issue
Block a user