summaryrefslogtreecommitdiffstats
path: root/hw/ide/core.c
diff options
context:
space:
mode:
authorEduardo Habkost2015-10-30 20:36:08 +0100
committerPaolo Bonzini2015-11-04 15:02:31 +0100
commit35c2c8dc8c0899882a8e0d349d93bd657772f1e7 (patch)
tree5d95179abdf3d07a7c29e76e251efe47cddf86f3 /hw/ide/core.c
parentpc: Set hw_version on all machine classes (diff)
downloadqemu-35c2c8dc8c0899882a8e0d349d93bd657772f1e7.tar.gz
qemu-35c2c8dc8c0899882a8e0d349d93bd657772f1e7.tar.xz
qemu-35c2c8dc8c0899882a8e0d349d93bd657772f1e7.zip
osdep: Rename qemu_{get, set}_version() to qemu_{, set_}hw_version()
This makes the purpose of the function clearer: it is not about the version of QEMU that's running, but the version string exposed in the emulated hardware. Cc: Andrzej Zaborowski <balrogg@gmail.com> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: John Snow <jsnow@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <1446233769-7892-3-git-send-email-ehabkost@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ide/core.c')
-rw-r--r--hw/ide/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c
index 317406dca3..364ba21e0c 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -2312,7 +2312,7 @@ int ide_init_drive(IDEState *s, BlockBackend *blk, IDEDriveKind kind,
if (version) {
pstrcpy(s->version, sizeof(s->version), version);
} else {
- pstrcpy(s->version, sizeof(s->version), qemu_get_version());
+ pstrcpy(s->version, sizeof(s->version), qemu_hw_version());
}
ide_reset(s);