some flags for dual-sdr cores.

This commit is contained in:
sorgelig
2019-09-08 08:40:06 +08:00
parent 73d967c29b
commit c3c4e2ea3e
5 changed files with 24 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ static int emu_mode = EMU_NONE;
// keep state over core type and its capabilities
static unsigned char core_type = CORE_TYPE_UNKNOWN;
static unsigned char dual_sdr = 0;
static int fio_size = 0;
static int io_ver = 0;
@@ -608,6 +609,11 @@ uint16_t sdram_sz(int sz)
return res;
}
int user_io_is_dualsdr()
{
return dual_sdr;
}
void user_io_init(const char *path)
{
char *name;
@@ -622,6 +628,12 @@ void user_io_init(const char *path)
fio_size = fpga_get_fio_size();
io_ver = fpga_get_io_version();
if (core_type == CORE_TYPE_8BIT2)
{
dual_sdr = 1;
core_type = CORE_TYPE_8BIT;
}
if ((core_type != CORE_TYPE_DUMB) &&
(core_type != CORE_TYPE_MINIMIG2) &&
(core_type != CORE_TYPE_MIST) &&