Converted casts to uint32_t to u32
This commit is contained in:
@@ -163,9 +163,9 @@ void ARM_Dynarmic::LoadContext(const ARM_Interface::ThreadContext& ctx) {
|
|||||||
jit.SetRegisters(ctx.cpu_registers);
|
jit.SetRegisters(ctx.cpu_registers);
|
||||||
jit.SetSP(ctx.sp);
|
jit.SetSP(ctx.sp);
|
||||||
jit.SetPC(ctx.pc);
|
jit.SetPC(ctx.pc);
|
||||||
jit.SetPstate(static_cast<uint32_t>(ctx.cpsr));
|
jit.SetPstate(static_cast<u32>(ctx.cpsr));
|
||||||
jit.SetVectors(ctx.fpu_registers);
|
jit.SetVectors(ctx.fpu_registers);
|
||||||
jit.SetFpcr(static_cast<uint32_t>(ctx.fpscr));
|
jit.SetFpcr(static_cast<u32>(ctx.fpscr));
|
||||||
cb->tpidrr0_el0 = ctx.tls_address;
|
cb->tpidrr0_el0 = ctx.tls_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -299,17 +299,17 @@ static std::map<u32, Breakpoint>& GetBreakpointList(BreakpointType type) {
|
|||||||
static void RemoveBreakpoint(BreakpointType type, PAddr addr) {
|
static void RemoveBreakpoint(BreakpointType type, PAddr addr) {
|
||||||
std::map<u32, Breakpoint>& p = GetBreakpointList(type);
|
std::map<u32, Breakpoint>& p = GetBreakpointList(type);
|
||||||
|
|
||||||
auto bp = p.find(static_cast<uint32_t>(addr));
|
auto bp = p.find(static_cast<u32>(addr));
|
||||||
if (bp != p.end()) {
|
if (bp != p.end()) {
|
||||||
LOG_DEBUG(Debug_GDBStub, "gdb: removed a breakpoint: %08x bytes at %08x of type %d\n",
|
LOG_DEBUG(Debug_GDBStub, "gdb: removed a breakpoint: %08x bytes at %08x of type %d\n",
|
||||||
bp->second.len, bp->second.addr, type);
|
bp->second.len, bp->second.addr, type);
|
||||||
p.erase(static_cast<uint32_t>(addr));
|
p.erase(static_cast<u32>(addr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BreakpointAddress GetNextBreakpointFromAddress(PAddr addr, BreakpointType type) {
|
BreakpointAddress GetNextBreakpointFromAddress(PAddr addr, BreakpointType type) {
|
||||||
std::map<u32, Breakpoint>& p = GetBreakpointList(type);
|
std::map<u32, Breakpoint>& p = GetBreakpointList(type);
|
||||||
auto next_breakpoint = p.lower_bound(static_cast<uint32_t>(addr));
|
auto next_breakpoint = p.lower_bound(static_cast<u32>(addr));
|
||||||
BreakpointAddress breakpoint;
|
BreakpointAddress breakpoint;
|
||||||
|
|
||||||
if (next_breakpoint != p.end()) {
|
if (next_breakpoint != p.end()) {
|
||||||
@@ -330,7 +330,7 @@ bool CheckBreakpoint(PAddr addr, BreakpointType type) {
|
|||||||
|
|
||||||
std::map<u32, Breakpoint>& p = GetBreakpointList(type);
|
std::map<u32, Breakpoint>& p = GetBreakpointList(type);
|
||||||
|
|
||||||
auto bp = p.find(static_cast<uint32_t>(addr));
|
auto bp = p.find(static_cast<u32>(addr));
|
||||||
if (bp != p.end()) {
|
if (bp != p.end()) {
|
||||||
u32 len = bp->second.len;
|
u32 len = bp->second.len;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user