Fix platform check for -A CoreSight mode

Signed-off-by: Akira Moroo <retrage01@gmail.com>
This commit is contained in:
Akira Moroo
2021-11-15 01:57:36 +00:00
parent c2feee4ed1
commit feff8191ec
4 changed files with 16 additions and 24 deletions

View File

@ -995,14 +995,12 @@ int main(int argc, char **argv_orig, char **envp) {
case 'A': /* CoreSight mode */
#if !defined(__aarch64__) || !defined(__linux__)
FATAL("-A option is not supported on this platform");
#endif
if (cs_mode) { FATAL("Multiple -A options not supported"); }
if (!(__aarch64__ && __linux__)) {
FATAL("-A option is not supported on this platform");
}
cs_mode = 1;
fsrv.cs_mode = cs_mode;
break;