diff options
author | Jiri Gaisler <jiri@gaisler.se> | 2020-12-01 13:34:02 +0100 |
---|---|---|
committer | Jiri Gaisler <jiri@gaisler.se> | 2020-12-01 16:44:58 +0100 |
commit | bb65f4484f9be1818435ca39e95feab35be427aa (patch) | |
tree | 9edb64b684e652caa4d3023be76b5116aedf07be /sis.c | |
parent | 11154be7bec2967b869fe385ab1df93a27efd82c (diff) |
Added emulation of GR740 SOC2.25
* Only limited functionality with standard peripherals
Diffstat (limited to 'sis.c')
-rw-r--r-- | sis.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -168,6 +168,11 @@ main (argc, argv) { lcputype = CPU_LEON3; } + else if (strcmp (argv[stat], "-gr740") == 0) + { + lcputype = CPU_LEON3; + ms = &gr740; + } else if (strcmp (argv[stat], "-riscv") == 0) { lcputype = CPU_RISCV; @@ -231,7 +236,8 @@ main (argc, argv) case CPU_LEON3: printf (" LEON3 emulation enabled, %d cpus online, delta %d clocks\n", ncpu, delta); - ms = &leon3; + if (!ms) + ms = &leon3; if (!freq) freq = 50; break; @@ -246,6 +252,7 @@ main (argc, argv) default: printf (" ERC32 emulation enabled\n"); cputype = CPU_ERC32; + ms = &erc32sys; if (!freq) freq = 14; } |