fixes and improvements for type issues, part 3

This commit is contained in:
kub 2021-02-05 23:01:25 +01:00
parent 832faed320
commit 4cc0fcaf15
15 changed files with 149 additions and 147 deletions

View file

@ -401,7 +401,7 @@ static int parse_bind_val(const char *val, int *type)
static void keys_parse_all(FILE *f)
{
char line[256], *var, *val;
char line[640], *var, *val;
int dev_id = -1;
int acts, type;
int ret;

View file

@ -333,7 +333,7 @@ int dismips(uintptr_t pc, uint32_t insn, char *buf, size_t buflen, unsigned long
*sym = 0;
if (pi == NULL) {
snprintf(buf, buflen, "0x%x", insn);
snprintf(buf, buflen, "0x%08lx", (unsigned long)insn);
return 0;
}
@ -348,7 +348,7 @@ int dismips(uintptr_t pc, uint32_t insn, char *buf, size_t buflen, unsigned long
break;
case REG_ST:
if ((insn & 0x38) == 0x30 /*T..*/)
snprintf(buf, buflen, "%s %s, %s (code %d)", pi->name, rs, rt, (insn>>6) & 0x3ff);
snprintf(buf, buflen, "%s %s, %s (code %d)", pi->name, rs, rt, (int)(insn>>6) & 0x3ff);
else
snprintf(buf, buflen, "%s %s, %s", pi->name, rs, rt);
break;
@ -420,7 +420,7 @@ int dismips(uintptr_t pc, uint32_t insn, char *buf, size_t buflen, unsigned long
snprintf(buf, buflen, "%s %s, %d", pi->name, rs, imm);
break;
case SB_CODE:
snprintf(buf, buflen, "%s %d", pi->name, (insn>>6) & 0xfffff);
snprintf(buf, buflen, "%s %ld", pi->name, (unsigned long)(insn>>6) & 0xfffff);
break;
}
return 1;

View file

@ -249,7 +249,7 @@ void plat_init(void)
if (ret != 0)
exit(1);
SDL_ShowCursor(0);
#if defined(__RG350__) || defined(__GCW0__)
#if defined(__RG350__) || defined(__GCW0__) || defined(__OPENDINGUX__)
// opendingux on JZ47x0 may falsely report a HW overlay, fix to window
plat_target.vout_method = 0;
#endif