aboutsummaryrefslogtreecommitdiff
path: root/target-moxie
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2015-01-07 15:36:33 -0200
committerMichael S. Tsirkin <mst@redhat.com>2015-01-27 14:46:17 +0200
commit744c6d474791ff3ad5c2f08edc732564199fd146 (patch)
tree88cca8700f00b89d21872e2d83a13b8ae47681ac /target-moxie
parent09852232ee131d0bfa5bdf7f44a806158a5c8711 (diff)
downloadqemu-744c6d474791ff3ad5c2f08edc732564199fd146.zip
qemu-744c6d474791ff3ad5c2f08edc732564199fd146.tar.gz
qemu-744c6d474791ff3ad5c2f08edc732564199fd146.tar.bz2
smbios: Fix dimm size calculation when RAM is multiple of 16GB
The Memory Device size calculation logic is broken when the RAM size is a multiple of 16GB, making the size of the last entry be 0 instead of 16GB. Fix the logic to handle that case correctly. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target-moxie')
0 files changed, 0 insertions, 0 deletions