Lines 49-54
static const UCHAR CpuAlpha = 14;
Link Here
|
49 |
static const UCHAR CpuArm64 = 15; |
49 |
static const UCHAR CpuArm64 = 15; |
50 |
static const UCHAR CpuPowerPc64el = 16; |
50 |
static const UCHAR CpuPowerPc64el = 16; |
51 |
static const UCHAR CpuM68k = 17; |
51 |
static const UCHAR CpuM68k = 17; |
|
|
52 |
static const UCHAR CpuRiscV64 = 18; |
52 |
|
53 |
|
53 |
static const UCHAR OsWindows = 0; |
54 |
static const UCHAR OsWindows = 0; |
54 |
static const UCHAR OsLinux = 1; |
55 |
static const UCHAR OsLinux = 1; |
Lines 89-95
const char* hardware[] = {
Link Here
|
89 |
"Alpha", |
90 |
"Alpha", |
90 |
"ARM64", |
91 |
"ARM64", |
91 |
"PowerPC64el", |
92 |
"PowerPC64el", |
92 |
"M68k" |
93 |
"M68k", |
|
|
94 |
"RiscV64" |
93 |
}; |
95 |
}; |
94 |
|
96 |
|
95 |
const char* operatingSystem[] = { |
97 |
const char* operatingSystem[] = { |
Lines 117-138
Link Here
|
117 |
// This table lists pre-fb3 implementation codes |
117 |
// This table lists pre-fb3 implementation codes |
118 |
const UCHAR backwardTable[FB_NELEM(hardware) * FB_NELEM(operatingSystem)] = |
118 |
const UCHAR backwardTable[FB_NELEM(hardware) * FB_NELEM(operatingSystem)] = |
119 |
{ |
119 |
{ |
120 |
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha ARM64 PowerPC64el |
120 |
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha ARM64 PowerPC64el RiscV64 |
121 |
/* Windows */ 50, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
121 |
/* Windows */ 50, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
122 |
/* Linux */ 60, 66, 65, 69, 86, 71, 72, 75, 76, 79, 78, 80, 81, 82, 83, 84, 85, |
122 |
/* Linux */ 60, 66, 65, 69, 86, 71, 72, 75, 76, 79, 78, 80, 81, 82, 83, 84, 85, 88, |
123 |
/* Darwin */ 70, 73, 0, 63, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
123 |
/* Darwin */ 70, 73, 0, 63, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
124 |
/* Solaris */ 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
124 |
/* Solaris */ 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
125 |
/* HPUX */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, |
125 |
/* HPUX */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, |
126 |
/* AIX */ 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
126 |
/* AIX */ 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
127 |
/* MVS */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
127 |
/* MVS */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
128 |
/* FreeBSD */ 61, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
128 |
/* FreeBSD */ 61, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
129 |
/* NetBSD */ 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
129 |
/* NetBSD */ 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
130 |
}; |
130 |
}; |
131 |
|
131 |
|
132 |
const UCHAR backEndianess[FB_NELEM(hardware)] = |
132 |
const UCHAR backEndianess[FB_NELEM(hardware)] = |
133 |
{ |
133 |
{ |
134 |
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha ARM64 PowerPC64el M68k |
134 |
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha ARM64 PowerPC64el M68k RiscV64 |
135 |
0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1 |
135 |
0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0 |
136 |
}; |
136 |
}; |
137 |
|
137 |
|
138 |
} // anonymous namespace |
138 |
} // anonymous namespace |