aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-24 18:53:22 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-24 18:53:22 +0000
commit2dc7b602df142a470cbf82b5d7ef1ea99f761785 (patch)
tree52abd4a5de6270a7a416b335fdf21ec0f9fc8497 /vl.c
parentaa941b944500bf77f0bdbfa0a7112b4e89670ff1 (diff)
Commit NAND image changes on "commit all" or "commit mtd".
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2858 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 7277165c71..24aef572f9 100644
--- a/vl.c
+++ b/vl.c
@@ -1362,6 +1362,8 @@ static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch)
if (bs_table[i])
bdrv_commit(bs_table[i]);
}
+ if (mtd_bdrv)
+ bdrv_commit(mtd_bdrv);
}
break;
case 'b':