Commit 6765511f32792eff65c1c82b33bb3a41162e2f50
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>
3 files changed:
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 0c1fddd74bc098f493ed9415e05dc1f26536092a..c0ade486bc11b145f76239ad2a7f707f5a36cc9b 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 1ecc208f55ecd5efc19431d52d1af74b1c246879..5ebd5407e3d25dc77040f32ba2f08e3558ed07d9 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)
 {