MCPcopy Create free account
hub / github.com/qilingframework/qiling / init_context

Method init_context

qiling/arch/cortex_m.py:110–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 return not self.is_handler_mode() and (self.regs.control & CONTROL.SPSEL) > 0
109
110 def init_context(self) -> None:
111 self.regs.lr = 0xffffffff
112 self.regs.msp = self.ql.mem.read_ptr(0x0)
113 self.regs.pc = self.ql.mem.read_ptr(0x4)
114
115 def unicorn_exception_handler(self, ql: Qiling, intno: int):
116 forward_mapper = {

Callers

nothing calls this directly

Calls 1

read_ptrMethod · 0.80

Tested by

no test coverage detected