]> Git Repo - qemu.git/blobdiff - tests/boot-sector.c
qmp: fix qmp_capabilities error regression
[qemu.git] / tests / boot-sector.c
index be29d5bb9b965ccfbeaa751ba78c921588ebaaac..c373f0e7156da7f571854fc91bcdd06fe191a0a0 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Authors:
  *  Michael S. Tsirkin <[email protected]>
- *  Victor Kaplansky <[email protected]>    
+ *  Victor Kaplansky <[email protected]>
  *
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
@@ -130,7 +130,7 @@ int boot_sector_init(char *fname)
 }
 
 /* Loop until signature in memory is OK.  */
-void boot_sector_test(void)
+void boot_sector_test(QTestState *qts)
 {
     uint8_t signature_low;
     uint8_t signature_high;
@@ -146,8 +146,8 @@ void boot_sector_test(void)
      * instruction.
      */
     for (i = 0; i < TEST_CYCLES; ++i) {
-        signature_low = readb(SIGNATURE_ADDR);
-        signature_high = readb(SIGNATURE_ADDR + 1);
+        signature_low = qtest_readb(qts, SIGNATURE_ADDR);
+        signature_high = qtest_readb(qts, SIGNATURE_ADDR + 1);
         signature = (signature_high << 8) | signature_low;
         if (signature == SIGNATURE) {
             break;
This page took 0.024621 seconds and 4 git commands to generate.