mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/nvram/fw_cfg: Add fw_cfg_arch_key_name()
Add fw_cfg_arch_key_name() which returns the name of an architecture-specific key. Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20190422195020.1494-3-philmd@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
1f80b0d67e
commit
b15c0f7d55
5 changed files with 38 additions and 1 deletions
|
@ -100,7 +100,7 @@ static const char *key_name(uint16_t key)
|
|||
};
|
||||
|
||||
if (key & FW_CFG_ARCH_LOCAL) {
|
||||
return NULL;
|
||||
return fw_cfg_arch_key_name(key);
|
||||
}
|
||||
if (key < FW_CFG_FILE_FIRST) {
|
||||
return fw_cfg_wellknown_keys[key];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue