qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Tardieu <samuel.tardieu@telecom-paris.fr>
To: Petr Cvek <petrcvekcz@gmail.com>
Cc: pbonzini@redhat.com, marcel.apfelbaum@gmail.com, mst@redhat.com,
	qemu-devel@nongnu.org
Subject: Re: [PATCH] qemu/timer: Don't use RDTSC on i486
Date: Sun, 26 Nov 2023 13:37:44 +0100	[thread overview]
Message-ID: <87msv065vx.fsf@telecom-paris.fr> (raw)
In-Reply-To: <6826113a-d428-401e-b5a3-56ad5d8fbaa4@gmail.com>


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 
> identified
> by 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


  reply	other threads:[~2023-11-26 12:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-25 12:23 [PATCH] qemu/timer: Don't use RDTSC on i486 Petr Cvek
2023-11-26 12:37 ` Samuel Tardieu [this message]
2023-11-26 12:59   ` Petr Cvek
2023-11-26 13:03     ` Samuel Tardieu
2023-11-26 22:49       ` Petr Cvek
2023-11-26 15:56 ` Paolo Bonzini
2023-11-26 22:52   ` Petr Cvek
2023-11-28 15:52   ` Richard Henderson
2023-11-29 13:50     ` Petr Cvek
2023-11-29 14:27       ` Richard Henderson
2023-11-27  9:49 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msv065vx.fsf@telecom-paris.fr \
    --to=samuel.tardieu@telecom-paris.fr \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=petrcvekcz@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).