|
| From: | Samuel Tardieu |
| Subject: | Re: [PATCH] qemu/timer: Don't use RDTSC on i486 |
| Date: | Sun, 26 Nov 2023 13:37:44 +0100 |
| User-agent: | mu4e 1.10.8; emacs 29.1 |
Petr Cvek <petrcvekcz@gmail.com> writes:
GCC defines __i386__ for i386 and i486, which both lack RDTSC instruction. The i386 seems to be impossible to distinguish, but i486 can be identifiedby checking for undefined __i486__.
Couldn't you check for an undefined __tune_i386__, which would be set by both GCC and LLVM when using -march=i386.
Sam -- Samuel Tardieu Télécom Paris - Institut Polytechnique de Paris
| [Prev in Thread] | Current Thread | [Next in Thread] |