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

The difference between error_printf() and error_report() is the latter
may contain more information, such as the name of the program
("qemu-system-x86_64").

Thus its variant error_report_once() and warn_report()'s variant
warn_report_once() can be used here to print the information only once
without a static local variable "ht_warned".

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