1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
5 #include "target-descriptions.h"
7 const struct target_desc
*tdesc_z80
;
9 initialize_tdesc_z80 (void)
11 target_desc_up result
= allocate_target_description ();
12 set_tdesc_architecture (result
.get (), bfd_scan_arch ("z80"));
14 struct tdesc_feature
*feature
;
16 feature
= tdesc_create_feature (result
.get (), "org.gnu.gdb.z80.cpu");
17 tdesc_type_with_fields
*type_with_fields
;
18 type_with_fields
= tdesc_create_flags (feature
, "af_flags", 2);
19 tdesc_add_flag (type_with_fields
, 0, "C");
20 tdesc_add_flag (type_with_fields
, 1, "N");
21 tdesc_add_flag (type_with_fields
, 2, "P/V");
22 tdesc_add_flag (type_with_fields
, 3, "F3");
23 tdesc_add_flag (type_with_fields
, 4, "H");
24 tdesc_add_flag (type_with_fields
, 5, "F5");
25 tdesc_add_flag (type_with_fields
, 6, "Z");
26 tdesc_add_flag (type_with_fields
, 7, "S");
28 tdesc_create_reg (feature
, "af", 0, 1, NULL
, 16, "af_flags");
29 tdesc_create_reg (feature
, "bc", 1, 1, NULL
, 16, "uint16");
30 tdesc_create_reg (feature
, "de", 2, 1, NULL
, 16, "data_ptr");
31 tdesc_create_reg (feature
, "hl", 3, 1, NULL
, 16, "data_ptr");
32 tdesc_create_reg (feature
, "sp", 4, 1, NULL
, 16, "data_ptr");
33 tdesc_create_reg (feature
, "pc", 5, 1, NULL
, 32, "code_ptr");
34 tdesc_create_reg (feature
, "ix", 6, 1, NULL
, 16, "data_ptr");
35 tdesc_create_reg (feature
, "iy", 7, 1, NULL
, 16, "data_ptr");
36 tdesc_create_reg (feature
, "af'", 8, 1, NULL
, 16, "af_flags");
37 tdesc_create_reg (feature
, "bc'", 9, 1, NULL
, 16, "uint16");
38 tdesc_create_reg (feature
, "de'", 10, 1, NULL
, 16, "data_ptr");
39 tdesc_create_reg (feature
, "hl'", 11, 1, NULL
, 16, "data_ptr");
40 tdesc_create_reg (feature
, "ir", 12, 1, NULL
, 16, "uint16");
42 tdesc_z80
= result
.release ();