forked from len0rd/rockbox
Implement dbg_save_roms for TCC780x.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23408 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aca1d8b50b
commit
ff7931ebd4
1 changed files with 19 additions and 5 deletions
|
|
@ -2207,6 +2207,20 @@ static bool dbg_save_roms(void)
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#elif defined(CPU_TCC780X)
|
||||||
|
static bool dbg_save_roms(void)
|
||||||
|
{
|
||||||
|
int fd;
|
||||||
|
|
||||||
|
fd = creat("/eeprom_E0000000-E0001FFF.bin");
|
||||||
|
if (fd >= 0)
|
||||||
|
{
|
||||||
|
write(fd, (void*)0xe0000000, 0x2000);
|
||||||
|
close(fd);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
#endif /* CPU */
|
#endif /* CPU */
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
|
|
@ -2536,7 +2550,7 @@ struct the_menu_item {
|
||||||
static const struct the_menu_item menuitems[] = {
|
static const struct the_menu_item menuitems[] = {
|
||||||
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \
|
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \
|
||||||
(defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \
|
(defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \
|
||||||
CONFIG_CPU == IMX31L
|
CONFIG_CPU == IMX31L || defined(CPU_TCC780X)
|
||||||
{ "Dump ROM contents", dbg_save_roms },
|
{ "Dump ROM contents", dbg_save_roms },
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \
|
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue