target/i386/host-cpu: Consolidate the use of warn_report_once()
authorZhao Liu <zhao1.liu@intel.com>
Wed, 27 Mar 2024 10:39:49 +0000 (18:39 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Apr 2024 15:35:26 +0000 (17:35 +0200)
commit7502ffb2f3240247e9426fd73b8422e5be54501a
tree31867e75442c655475a881d9711a063b145b12fa
parent565f4768bb9cf840b2f8cca41483bb91aa3196a3
target/i386/host-cpu: Consolidate the use of warn_report_once()

Use warn_report_once() to get rid of the static local variable "warned".

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Message-ID: <20240327103951.3853425-2-zhao1.liu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/host-cpu.c