CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
76 lines
1.5 KiB
C
76 lines
1.5 KiB
C
#ifndef S12Z_H
|
|
#define S12Z_H
|
|
|
|
/* This byte is used to prefix instructions in "page 2" of the opcode
|
|
space. */
|
|
#define PAGE2_PREBYTE (0x1b)
|
|
|
|
struct reg
|
|
{
|
|
char *name; /* The canonical name of the register. */
|
|
int bytes; /* its size, in bytes. */
|
|
};
|
|
|
|
|
|
/* How many registers do we have. Actually there are only 13,
|
|
because CCL and CCH are the low and high bytes of CCW. But
|
|
for assemnbly / disassembly purposes they are considered
|
|
distinct registers. */
|
|
#define S12Z_N_REGISTERS 15
|
|
|
|
extern const struct reg registers[S12Z_N_REGISTERS];
|
|
|
|
/* Solaris defines REG_Y in sys/regset.h; undef it here to avoid
|
|
breaking compilation when this target is enabled. */
|
|
#undef REG_Y
|
|
|
|
enum
|
|
{
|
|
REG_D2 = 0,
|
|
REG_D3,
|
|
REG_D4,
|
|
REG_D5,
|
|
REG_D0,
|
|
REG_D1,
|
|
REG_D6,
|
|
REG_D7,
|
|
REG_X,
|
|
REG_Y,
|
|
REG_S,
|
|
REG_P,
|
|
REG_CCH,
|
|
REG_CCL,
|
|
REG_CCW
|
|
};
|
|
|
|
/* Any of the registers d0, d1, ... d7. */
|
|
#define REG_BIT_Dn \
|
|
((0x1U << REG_D2) | \
|
|
(0x1U << REG_D3) | \
|
|
(0x1U << REG_D4) | \
|
|
(0x1U << REG_D5) | \
|
|
(0x1U << REG_D6) | \
|
|
(0x1U << REG_D7) | \
|
|
(0x1U << REG_D0) | \
|
|
(0x1U << REG_D1))
|
|
|
|
/* Any of the registers x, y or z. */
|
|
#define REG_BIT_XYS \
|
|
((0x1U << REG_X) | \
|
|
(0x1U << REG_Y) | \
|
|
(0x1U << REG_S))
|
|
|
|
/* Any of the registers x, y, z or p. */
|
|
#define REG_BIT_XYSP \
|
|
((0x1U << REG_X) | \
|
|
(0x1U << REG_Y) | \
|
|
(0x1U << REG_S) | \
|
|
(0x1U << REG_P))
|
|
|
|
/* The x register or the y register. */
|
|
#define REG_BIT_XY \
|
|
((0x1U << REG_X) | \
|
|
(0x1U << REG_Y))
|
|
|
|
#endif
|