summaryrefslogtreecommitdiffstats
path: root/hw/syborg_timer.c
diff options
context:
space:
mode:
authorVijay Kumar2009-08-21 06:57:38 +0200
committerAnthony Liguori2009-08-28 03:35:30 +0200
commitd0e7605ee0d91c3737052127a79199ddab3ff653 (patch)
tree5b9394d450e4134a99c3a3d892d7bd0668926390 /hw/syborg_timer.c
parentkvm: Simplify cpu_synchronize_state() (diff)
downloadqemu-d0e7605ee0d91c3737052127a79199ddab3ff653.tar.gz
qemu-d0e7605ee0d91c3737052127a79199ddab3ff653.tar.xz
qemu-d0e7605ee0d91c3737052127a79199ddab3ff653.zip
Check block driver read error in pflash_cfi0x
If a flash file of size smaller than the flash size is specified in the -pflash option, the block driver returns error. But the pflash_cfi0x ignores the error. This results in a flash content of all zeroes. And the simulation aborts while executing code. This patch adds the checks for errors from bdrv_read and escalates it to the calling code. Signed-off-by: Vijay Kumar B. <vijaykumar@bravegnu.org> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/syborg_timer.c')
0 files changed, 0 insertions, 0 deletions