osdep: Move default qemu_hw_version() value to a macro

The macro will be used by code that will stop calling
qemu_hw_version() at runtime and just need a constant value.

Backports commit d494352c2f7818aeba184a8ef757569083740bb2 from qemu
This commit is contained in:
Eduardo Habkost 2018-02-24 03:16:32 -05:00 committed by Lioncash
parent 923dcf1cb8
commit aa3d46ef83
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -207,4 +207,13 @@ void qemu_anon_ram_free(void *ptr, size_t size);
*/
unsigned long qemu_getauxval(unsigned long type);
/* Starting on QEMU 2.5, qemu_hw_version() returns "2.5+" by default
* instead of QEMU_VERSION, so setting hw_version on MachineClass
* is no longer mandatory.
*
* Do NOT change this string, or it will break compatibility on all
* machine classes that don't set hw_version.
*/
#define QEMU_HW_VERSION "2.5+"
#endif