OSDN Git Service

flash device init 関数の呼び出しの追加
authorsato_tiff <sato_tiff@24ea1065-a21e-4ca1-99c9-f5125deb0858>
Tue, 16 Dec 2008 18:05:56 +0000 (18:05 +0000)
committersato_tiff <sato_tiff@24ea1065-a21e-4ca1-99c9-f5125deb0858>
Tue, 16 Dec 2008 18:05:56 +0000 (18:05 +0000)
git-svn-id: svn+ssh://svn.osdn.net/svnroot/unagi@184 24ea1065-a21e-4ca1-99c9-f5125deb0858

client/trunk/script.c

index c2fcb10..f39a940 100644 (file)
@@ -1025,6 +1025,13 @@ static int execute(const struct script *s, const struct st_config *c, struct rom
                d->open_or_close(READER_CLOSE);
                return NG;
        }
+       if(c->mode == MODE_ROM_PROGRAM){
+               //device ¤è¤Ã¤Æ¤Ï erase
+               c->cpu_flash_driver->init(&(r->cpu_flash));
+               if(r->ppu_rom.size != 0){
+                       c->ppu_flash_driver->init(&(r->ppu_flash));
+               }
+       }
        struct memory cpu_rom, ppu_rom, cpu_ram;
        cpu_rom = r->cpu_rom;
        ppu_rom = r->ppu_rom;