CACAO
Macros | Functions
md.hpp File Reference

Go to the source code of this file.

Macros

#define SHIFT_AND_MASK(instr)   ((instr >> 13) & 0x60fc1)
 
#define IS_SETHI(instr)
 

Functions

static int32_t md_stacktrace_get_framesize (codeinfo *code)
 Returns the size (in bytes) of the current stackframe, specified by the passed codeinfo structure. More...
 
static voidmd_stacktrace_get_returnaddress (void *sp, int32_t stackframesize)
 
static voidmd_get_framepointer (void *sp)
 
static voidmd_get_pv_from_stackframe (void *sp)
 
s2 decode_13bit_imm (u4 instr)
 
static voidmd_codegen_get_pv_from_pc (void *ra)
 
static void md_cacheflush (void *addr, int nbytes)
 
static void md_dcacheflush (void *addr, int nbytes)
 

Macro Definition Documentation

#define IS_SETHI (   instr)
Value:
(((instr & 0xc1c00000) == 0x01000000) \
&& ((instr & 0x3fffff) != 0x0))

Definition at line 126 of file md.hpp.

#define SHIFT_AND_MASK (   instr)    ((instr >> 13) & 0x60fc1)

Definition at line 121 of file md.hpp.

Function Documentation

s2 decode_13bit_imm ( u4  instr)
inline

Definition at line 130 of file md.hpp.

static void md_cacheflush ( void addr,
int  nbytes 
)
inlinestatic

Definition at line 192 of file md.hpp.

static void* md_codegen_get_pv_from_pc ( void ra)
inlinestatic

Definition at line 143 of file md.hpp.

static void md_dcacheflush ( void addr,
int  nbytes 
)
inlinestatic

Definition at line 204 of file md.hpp.

static void* md_get_framepointer ( void sp)
inlinestatic

Definition at line 79 of file md.hpp.

static void* md_get_pv_from_stackframe ( void sp)
inlinestatic

Definition at line 91 of file md.hpp.

static int32_t md_stacktrace_get_framesize ( codeinfo code)
inlinestatic

Returns the size (in bytes) of the current stackframe, specified by the passed codeinfo structure.

Definition at line 43 of file md.hpp.

static void* md_stacktrace_get_returnaddress ( void sp,
int32_t  stackframesize 
)
inlinestatic

Definition at line 62 of file md.hpp.