ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
emu_mpu.h
Go to the documentation of this file.
1
19
20#pragma once
21
22#include <stdint.h>
23#include <unicorn/unicorn.h>
24
25#include "ra8_attributes.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
44void emu_mpu_install(uc_engine* uc);
45
59bool emu_mpu_fault_pending(void);
60
75void emu_mpu_clear_fault(void);
76
100void mpu_synth_memmanage(uc_engine* uc, uint32_t vtor_base);
101
102#ifdef __cplusplus
103}
104#endif
bool emu_mpu_fault_pending(void)
Whether an RO-region write violation is latched.
Definition emu_mpu.c:320
void emu_mpu_clear_fault(void)
Clear the latched MPU violation.
Definition emu_mpu.c:326
void mpu_synth_memmanage(uc_engine *uc, uint32_t vtor_base)
Synthesise a MemManage (#4) fault for a trapped RO-region write.
Definition emu_mpu.c:281
void emu_mpu_install(uc_engine *uc)
Arm the MPU register watchers (RLAR capture + CTRL edge hooks).
Definition emu_mpu.c:295
Annotation-attribute framework macros for ra8-firmware.