|
0.3.1
|
Data Structures | |
| struct | cpu_registers |
| Represent the register configuration. More... | |
Typedefs | |
| typedef struct cpu_registers | cpu_registers_t |
| Represent the register configuration. | |
Functions | |
| static void | cpu_reg_gbr_set (uint32_t reg_gbr) |
Set the gbr register. | |
| static uint32_t | cpu_reg_gbr_get (void) |
Obtain the 32-bit value of the gbr register. | |
| static void | cpu_reg_vbr_set (uint32_t reg_vbr) |
Set the vbr register. | |
| static uint32_t | cpu_reg_vbr_get (void) |
Obtain the 32-bit value of the vbr register. | |
| static void | cpu_reg_mach_set (uint32_t reg_mach) |
Set the mach register. | |
| static uint32_t | cpu_reg_mach_get (void) |
Obtain the 32-bit value of the mach register. | |
| static void | cpu_reg_macl_set (uint32_t reg_macl) |
Set the macl register. | |
| static uint32_t | cpu_reg_macl_get (void) |
Obtain the 32-bit value of the macl register. | |
| static void | cpu_reg_pr_set (uint32_t reg_pr) |
Set the pr register. | |
| static uint32_t | cpu_reg_pr_get (void) |
Obtain the 32-bit value of the pr register. | |
| static void | cpu_reg_sr_set (uint32_t reg_sr) |
Set the sr register. | |
| static uint32_t | cpu_reg_sr_get (void) |
Obtain the 32-bit value of the sr register. | |
| static uint32_t | cpu_reg_fp_get (void) |
Obtain the 32-bit value of the fp (or r14) register. | |
| static uint32_t | cpu_reg_sp_get (void) |
Obtain the 32-bit value of the sp register. | |
Description goes here.
| struct cpu_registers |
Represent the register configuration.
| Data Fields | ||
|---|---|---|
| uint32_t | sp |
sp register (or r15). |
| uint32_t | r[15] |
Registers r0..r14. |
| uint32_t | macl |
macl register. |
| uint32_t | mach |
mach register. |
| uint32_t | vbr |
vbr register. |
| uint32_t | gbr |
gbr register. |
| uint32_t | pr |
pr register. |
| uint32_t | pc |
pc register. |
| uint32_t | sr |
sr register. |
|
inlinestatic |
Set the gbr register.
The appropriate gbr value will be set depending on which CPU you're executing this inlined function on.
| reg_gbr | The 32-bit value. |
|
inlinestatic |
Obtain the 32-bit value of the gbr register.
The appropriate gbr value will be returned depending on which CPU you're executing this inlined function on.
gbr register.
|
inlinestatic |
Set the vbr register.
The vbr register defaults to 0x0600000 for the master CPU, and 0x06000400 for the slave CPU.
The appropriate vbr value will be set depending on which CPU you're executing this inlined function on.
| reg_vbr | The 32-bit value. |
|
inlinestatic |
Obtain the 32-bit value of the vbr register.
The appropriate vbr value will be returned depending on which CPU you're executing this inlined function on.
vbr register.
|
inlinestatic |
Set the mach register.
The appropriate mach value will be set depending on which CPU you're executing this inlined function on.
| reg_mach | The 32-bit value. |
|
inlinestatic |
Obtain the 32-bit value of the mach register.
The appropriate mach value will be returned depending on which CPU you're executing this inlined function on.
mach register.
|
inlinestatic |
Set the macl register.
The appropriate macl value will be set depending on which CPU you're executing this inlined function on.
| reg_macl | The 32-bit value. |
|
inlinestatic |
Obtain the 32-bit value of the macl register.
The appropriate macl value will be returned depending on which CPU you're executing this inlined function on.
macl register.
|
inlinestatic |
Set the pr register.
The appropriate pr value will be set depending on which CPU you're executing this inlined function on.
| reg_pr | The 32-bit value. |
|
inlinestatic |
Obtain the 32-bit value of the pr register.
The appropriate pr value will be returned depending on which CPU you're executing this inlined function on.
pr register.
|
inlinestatic |
Set the sr register.
The appropriate sr value will be set depending on which CPU you're executing this inlined function on.
| reg_sr | The 32-bit value. |
|
inlinestatic |
Obtain the 32-bit value of the sr register.
The appropriate sr value will be returned depending on which CPU you're executing this inlined function on.
sr register.
|
inlinestatic |
Obtain the 32-bit value of the fp (or r14) register.
The appropriate fp (or r14) value will be returned depending on which CPU you're executing this inlined function on.
-fomit-frame-pointer to GCC, so the the frame pointer is not being tracked.fp (or r14) register.
|
inlinestatic |
Obtain the 32-bit value of the sp register.
The appropriate sp value will be returned depending on which CPU you're executing this inlined function on.
sp register.