simavr: Now use the generated config files
authorMichel Pollet <buserror@gmail.com>
Fri, 2 Mar 2012 14:33:03 +0000 (14:33 +0000)
committerMichel Pollet <buserror@gmail.com>
Fri, 2 Mar 2012 15:00:38 +0000 (15:00 +0000)
Removed the statis tables, use the generated config
Also updated .gitignore

Signed-off-by: Michel Pollet <buserror@gmail.com>
simavr/.gitignore [new file with mode: 0644]
simavr/sim/run_avr.c
simavr/sim/sim_avr.c

diff --git a/simavr/.gitignore b/simavr/.gitignore
new file mode 100644 (file)
index 0000000..aba978b
--- /dev/null
@@ -0,0 +1,2 @@
+sim_core_decl.h
+sim_core_config.h
index 0c1fddd..c0ade48 100644 (file)
@@ -30,7 +30,7 @@
 #include "sim_gdb.h"
 #include "sim_hex.h"
 
-extern avr_kind_t * avr_kind[];
+#include "sim_core_decl.h"
 
 void display_usage(char * app)
 {
index 1ecc208..5ebd540 100644 (file)
@@ -31,6 +31,8 @@
 #include "sim_vcd_file.h"
 #include "avr_mcu_section.h"
 
+#define AVR_KIND_DECL
+#include "sim_core_decl.h"
 
 int avr_init(avr_t * avr)
 {
@@ -291,7 +293,7 @@ int avr_run(avr_t * avr)
        return avr->state;
 }
 
-
+#if 0
 extern avr_kind_t tiny13;
 extern avr_kind_t tiny2313;
 extern avr_kind_t tiny25,tiny45,tiny85;
@@ -318,6 +320,7 @@ avr_kind_t * avr_kind[] = {
        &usb162,
        NULL
 };
+#endif
 
 avr_t * avr_make_mcu_by_name(const char *name)
 {