citra-emu
/
citra-canary
Archived
1
0
Fork 0

Merge pull request #4031 from zhaowenlan1779/port-yuzu-723

Port "gdbstub: Get rid of a few signed/unsigned comparisons" from yuzu
This commit is contained in:
Weiyi Wang 2018-08-02 11:17:38 +03:00 committed by GitHub
commit 9b558253a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -564,7 +564,7 @@ static void ReadRegisters() {
u8* bufptr = buffer; u8* bufptr = buffer;
for (int reg = 0; reg <= R15_REGISTER; reg++) { for (u32 reg = 0; reg <= R15_REGISTER; reg++) {
IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetReg(reg)); IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetReg(reg));
} }
@ -574,7 +574,7 @@ static void ReadRegisters() {
bufptr += CHAR_BIT; bufptr += CHAR_BIT;
for (int reg = 0; reg <= 31; reg++) { for (u32 reg = 0; reg <= 31; reg++) {
IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetVFPReg(reg)); IntToGdbHex(bufptr + reg * CHAR_BIT, Core::CPU().GetVFPReg(reg));
} }
@ -618,7 +618,7 @@ static void WriteRegisters() {
if (command_buffer[0] != 'G') if (command_buffer[0] != 'G')
return SendReply("E01"); return SendReply("E01");
for (int i = 0, reg = 0; reg <= FPSCR_REGISTER; i++, reg++) { for (u32 i = 0, reg = 0; reg <= FPSCR_REGISTER; i++, reg++) {
if (reg <= R15_REGISTER) { if (reg <= R15_REGISTER) {
Core::CPU().SetReg(reg, GdbHexToInt(buffer_ptr + i * CHAR_BIT)); Core::CPU().SetReg(reg, GdbHexToInt(buffer_ptr + i * CHAR_BIT));
} else if (reg == CPSR_REGISTER) { } else if (reg == CPSR_REGISTER) {