CACAO
Functions
md.cpp File Reference

Go to the source code of this file.

Functions

void md_init (void)
 
void md_signal_handler_sigsegv (int sig, siginfo_t *siginfo, void *_p)
 NullPointerException signal handler for hardware null pointer check. More...
 
void md_signal_handler_sigill (int sig, siginfo_t *siginfo, void *_p)
 Illegal Instruction signal handler for hardware exception checks. More...
 
void md_signal_handler_sigfpe (int sig, siginfo_t *siginfo, void *_p)
 
void md_signal_handler_sigusr2 (int sig, siginfo_t *siginfo, void *_p)
 
void md_executionstate_read (executionstate_t *es, void *context)
 Read the given context into an executionstate. More...
 
void md_executionstate_write (executionstate_t *es, void *context)
 Write the given executionstate back to the context. More...
 
voidmd_jit_method_patch_address (void *pv, void *ra, void *mptr)
 
bool md_trap_decode (trapinfo_t *trp, int sig, void *xpc, executionstate_t *es)
 Decode the trap instruction at the given PC. More...
 
void md_handle_exception (int32_t *regs, int64_t *fregs, int32_t *out)
 

Function Documentation

void md_executionstate_read ( executionstate_t es,
void context 
)

Read the given context into an executionstate.

Parameters
esexecution state
contextmachine context

Definition at line 165 of file md.cpp.

void md_executionstate_write ( executionstate_t es,
void context 
)

Write the given executionstate back to the context.

Parameters
esexecution state
contextmachine context

Definition at line 199 of file md.cpp.

void md_handle_exception ( int32_t *  regs,
int64_t *  fregs,
int32_t *  out 
)

Definition at line 411 of file md.cpp.

void md_init ( void  )

Definition at line 55 of file md.cpp.

void* md_jit_method_patch_address ( void pv,
void ra,
void mptr 
)

Definition at line 258 of file md.cpp.

void md_signal_handler_sigfpe ( int  sig,
siginfo_t *  siginfo,
void _p 
)

Definition at line 94 of file md.cpp.

void md_signal_handler_sigill ( int  sig,
siginfo_t *  siginfo,
void _p 
)

Illegal Instruction signal handler for hardware exception checks.

Definition at line 76 of file md.cpp.

void md_signal_handler_sigsegv ( int  sig,
siginfo_t *  siginfo,
void _p 
)

NullPointerException signal handler for hardware null pointer check.

NullPointerException signal handler for hardware null pointer check.

Definition at line 62 of file md.cpp.

void md_signal_handler_sigusr2 ( int  sig,
siginfo_t *  siginfo,
void _p 
)

Definition at line 137 of file md.cpp.

bool md_trap_decode ( trapinfo_t trp,
int  sig,
void xpc,
executionstate_t es 
)

Decode the trap instruction at the given PC.

Parameters
trpinformation about trap to be filled
sigsignal number
xpcexception PC
esexecution state of the machine
Returns
true if trap was decoded successfully, false otherwise.

Definition at line 333 of file md.cpp.