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
131 lines
3.0 KiB
C
131 lines
3.0 KiB
C
/* The common simulator framework for GDB, the GNU Debugger.
|
|
|
|
Copyright 2002-2024 Free Software Foundation, Inc.
|
|
|
|
Contributed by Andrew Cagney and Red Hat.
|
|
|
|
This file is part of GDB.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
|
|
#ifndef SIM_BASICS_H
|
|
#define SIM_BASICS_H
|
|
|
|
|
|
/* Basic configuration */
|
|
|
|
#include "defs.h"
|
|
|
|
/* Basic host dependant mess - hopefully <stdio.h> + <stdarg.h> will
|
|
bring potential conflicts out in the open */
|
|
|
|
#include <setjmp.h>
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
#ifndef min
|
|
#define min(a, b) ((a) < (b) ? (a) : (b))
|
|
#endif
|
|
#ifndef max
|
|
#define max(a, b) ((a) > (b) ? (a) : (b))
|
|
#endif
|
|
|
|
|
|
/* Global types that code manipulates */
|
|
|
|
struct hw;
|
|
struct _sim_fpu;
|
|
|
|
|
|
/* Generic address space (maps) and access attributes */
|
|
|
|
enum {
|
|
read_map = 0,
|
|
write_map = 1,
|
|
exec_map = 2,
|
|
io_map = 3,
|
|
nr_maps = 32, /* something small */
|
|
};
|
|
|
|
enum {
|
|
access_invalid = 0,
|
|
access_read = 1 << read_map,
|
|
access_write = 1 << write_map,
|
|
access_exec = 1 << exec_map,
|
|
access_io = 1 << io_map,
|
|
};
|
|
|
|
enum {
|
|
access_read_write = (access_read | access_write),
|
|
access_read_exec = (access_read | access_exec),
|
|
access_write_exec = (access_write | access_exec),
|
|
access_read_write_exec = (access_read | access_write | access_exec),
|
|
access_read_io = (access_read | access_io),
|
|
access_write_io = (access_write | access_io),
|
|
access_read_write_io = (access_read | access_write | access_io),
|
|
access_exec_io = (access_exec | access_io),
|
|
access_read_exec_io = (access_read | access_exec | access_io),
|
|
access_write_exec_io = (access_write | access_exec | access_io),
|
|
access_read_write_exec_io = (access_read | access_write | access_exec | access_io),
|
|
};
|
|
|
|
|
|
/* disposition of an object when things are reset */
|
|
|
|
typedef enum {
|
|
permanent_object,
|
|
temporary_object,
|
|
} object_disposition;
|
|
|
|
|
|
/* Memory transfer types */
|
|
|
|
typedef enum _transfer_type {
|
|
read_transfer,
|
|
write_transfer,
|
|
} transfer_type;
|
|
|
|
|
|
/* directions */
|
|
|
|
typedef enum {
|
|
bidirect_port,
|
|
input_port,
|
|
output_port,
|
|
} port_direction;
|
|
|
|
|
|
|
|
/* Basic definitions - ordered so that nothing calls what comes after it. */
|
|
|
|
#include "sim/sim.h"
|
|
|
|
#include "sim-config.h"
|
|
|
|
#include "sim-inline.h"
|
|
|
|
#include "sim-types.h"
|
|
#include "sim-bits.h"
|
|
#include "sim-endian.h"
|
|
|
|
#include "sim-utils.h"
|
|
|
|
/* Note: Only the simpler interfaces are defined here. More heavy
|
|
weight objects, such as core and events, are defined in the more
|
|
serious sim-base.h header. */
|
|
|
|
#endif /* SIM_BASICS_H */
|