Expand frontend_linux_get_architecture some more

This commit is contained in:
twinaphex 2015-04-18 20:16:59 +02:00
parent 5cfc0bb723
commit b4549d4bf4
2 changed files with 9 additions and 0 deletions

View File

@ -398,6 +398,14 @@ enum frontend_architecture frontend_linux_get_architecture(void)
return FRONTEND_ARCH_X86_64;
if (!strcmp(buffer.machine, "x86"))
return FRONTEND_ARCH_X86;
if (!strcmp(buffer.machine, "arm"))
return FRONTEND_ARCH_ARM;
if (!strcmp(buffer.machine, "ppc64"))
return FRONTEND_ARCH_PPC;
if (!strcmp(buffer.machine, "mips"))
return FRONTEND_ARCH_MIPS;
if (!strcmp(buffer.machine, "tile"))
return FRONTEND_ARCH_TILE;
return FRONTEND_ARCH_NONE;
}

View File

@ -45,6 +45,7 @@ enum frontend_architecture
FRONTEND_ARCH_PPC,
FRONTEND_ARCH_ARM,
FRONTEND_ARCH_MIPS,
FRONTEND_ARCH_TILE,
};
typedef void (*environment_get_t)(int *argc, char *argv[], void *args,