include/hw: add helpers for defining versioned machine types
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 20 Jun 2024 16:57:29 +0000 (17:57 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 2 Jul 2024 04:58:02 +0000 (06:58 +0200)
commita1c314861d3b95e10ef0fc6a82d991e68105bce7
tree04d6fc247ca701b817c7bc34032427afbd6f0cb5
parent67f67bd85476b92093167e1831bf2b5bc597082c
include/hw: add helpers for defining versioned machine types

The various targets which define versioned machine types have
a bunch of obfuscated macro code for defining unique function
and variable names using string concatenation.

This adds a couple of helpers to improve the clarity of such
code macro.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240620165742.1711389-2-berrange@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
include/hw/boards.h