2020-10-19 17:20:55 +02:00
|
|
|
|
/*
|
|
|
|
|
* Sparc CPU init helpers
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 2003-2005 Fabrice Bellard
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library 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
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "qemu/osdep.h"
|
|
|
|
|
#include "qemu/log.h"
|
|
|
|
|
#include "qapi/error.h"
|
|
|
|
|
#include "cpu.h"
|
|
|
|
|
#include "qemu/module.h"
|
|
|
|
|
#include "qemu/qemu-print.h"
|
|
|
|
|
#include "exec/exec-all.h"
|
|
|
|
|
#include "hw/qdev-properties.h"
|
|
|
|
|
#include "qapi/visitor.h"
|
|
|
|
|
#include "hw/core/tcg-cpu-ops.h"
|
|
|
|
|
|
|
|
|
|
//#define DEBUG_FEATURES
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
void cpu_e2k_set_id(CPUE2KState *env, unsigned int cpu);
|
|
|
|
|
void e2k_cpu_dump_state(CPUState *cs, FILE *f, int flags);
|
|
|
|
|
|
2020-10-19 17:20:55 +02:00
|
|
|
|
static void e2k_cpu_reset(DeviceState *dev)
|
|
|
|
|
{
|
2020-11-08 19:27:47 +01:00
|
|
|
|
CPUState *cs = CPU(dev);
|
|
|
|
|
E2KCPU *cpu = E2K_CPU(cs);
|
|
|
|
|
E2KCPUClass *ecc = E2K_CPU_GET_CLASS(cpu);
|
|
|
|
|
CPUE2KState *env = &cpu->env;
|
|
|
|
|
|
|
|
|
|
ecc->parent_reset(dev);
|
|
|
|
|
|
|
|
|
|
memset(env, 0, offsetof(CPUE2KState, end_reset_fields));
|
2020-11-11 10:28:06 +01:00
|
|
|
|
|
2020-11-26 19:35:07 +01:00
|
|
|
|
env->wd.base = 0;
|
2020-12-02 23:46:09 +01:00
|
|
|
|
env->wd.size = 16;
|
2020-11-26 19:35:07 +01:00
|
|
|
|
env->wd.psize = 8;
|
2020-11-26 19:25:43 +01:00
|
|
|
|
env->bn.base = 8;
|
|
|
|
|
env->bn.size = 8;
|
|
|
|
|
env->bn.cur = 0;
|
|
|
|
|
/* Based predicate window must not be zero. */
|
|
|
|
|
env->bp.size = 1;
|
2020-12-08 08:11:56 +01:00
|
|
|
|
env->aau.incrs[0] = 1; /* always one */
|
2020-12-09 20:12:43 +01:00
|
|
|
|
env->fpcr._one = 1;
|
2021-01-08 02:43:09 +01:00
|
|
|
|
env->fpcr.pc = FPCR_PC_XP;
|
2021-02-22 15:05:10 +01:00
|
|
|
|
env->fpcr.em = FP_EM;
|
|
|
|
|
env->pfpfr.em = FP_EM;
|
|
|
|
|
|
2021-01-08 02:43:09 +01:00
|
|
|
|
e2k_update_fp_status(env);
|
2021-02-22 15:05:10 +01:00
|
|
|
|
e2k_update_fx_status(env);
|
2020-11-26 20:14:40 +01:00
|
|
|
|
|
|
|
|
|
// FIXME: testing
|
2021-01-09 23:01:20 +01:00
|
|
|
|
env->idr = 0x3a207; /* mimic 8c */
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_SOFTMMU
|
|
|
|
|
static bool e2k_cpu_exec_interrupt(CPUState *cs, int interrupt_request)
|
|
|
|
|
{
|
2020-11-17 12:56:09 +01:00
|
|
|
|
qemu_log_mask(LOG_UNIMP, "e2k_cpu_exec_interrupt: not implemented\n");
|
|
|
|
|
if (interrupt_request & CPU_INTERRUPT_HARD) {
|
|
|
|
|
e2k_cpu_do_interrupt(cs);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2020-11-08 19:27:47 +01:00
|
|
|
|
return false;
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-11-17 12:56:09 +01:00
|
|
|
|
void e2k_cpu_do_interrupt(CPUState *cs)
|
|
|
|
|
{
|
|
|
|
|
qemu_log_mask(LOG_UNIMP, "e2k_cpu_do_interrupt: not implemented\n");
|
|
|
|
|
cs->exception_index = -1;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-15 00:32:19 +01:00
|
|
|
|
static void cpu_e2k_disas_set_info(CPUState *cs, disassemble_info *info)
|
2020-10-19 17:20:55 +02:00
|
|
|
|
{
|
2020-12-15 00:32:19 +01:00
|
|
|
|
E2KCPU *cpu = E2K_CPU(cs);
|
|
|
|
|
CPUE2KState *env = &cpu->env;
|
|
|
|
|
|
|
|
|
|
info->mach = env->version * 3;
|
2020-10-19 17:20:55 +02:00
|
|
|
|
info->print_insn = print_insn_e2k;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
void cpu_e2k_set_id(CPUE2KState *env, unsigned int cpu)
|
2020-10-19 17:20:55 +02:00
|
|
|
|
{
|
2020-11-28 09:08:22 +01:00
|
|
|
|
// TODO: cpu_e2k_set_id
|
2020-11-08 19:27:47 +01:00
|
|
|
|
qemu_log_mask(LOG_UNIMP, "cpu_e2k_set_id: not implemented\n");
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-07 18:27:13 +01:00
|
|
|
|
/* https://www.altlinux.org/Модели_процессоров_Эльбрус */
|
|
|
|
|
#define DEFAULT_CPU_MODEL "e8c"
|
2020-11-08 19:27:47 +01:00
|
|
|
|
static const struct e2k_def_t e2k_defs[] = {
|
|
|
|
|
{
|
2021-01-24 04:12:54 +01:00
|
|
|
|
.name = "e2c+", /* however it may work better */
|
2020-12-07 18:27:13 +01:00
|
|
|
|
.canonical_name = "MCST Elbrus 2C+ (Monocube)",
|
|
|
|
|
.gdb_arch = "elbrus-v2",
|
|
|
|
|
.isa_version = 2,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.name = "e2s",
|
|
|
|
|
.canonical_name = "MCST Elbrus 4C",
|
|
|
|
|
.gdb_arch = "elbrus-v3",
|
|
|
|
|
.isa_version = 3,
|
|
|
|
|
},
|
2021-01-24 04:12:54 +01:00
|
|
|
|
{
|
|
|
|
|
.name = "e8c", /* default choice for system */
|
|
|
|
|
.canonical_name = "MCST Elbrus 8C",
|
|
|
|
|
.gdb_arch = "elbrus-8c",
|
|
|
|
|
.isa_version = 4,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.name = "e8c2",
|
|
|
|
|
.canonical_name = "MCST Elbrus 8CB",
|
|
|
|
|
.gdb_arch = "elbrus-v5",
|
|
|
|
|
.isa_version = 5,
|
|
|
|
|
},
|
2020-12-07 18:27:13 +01:00
|
|
|
|
{
|
|
|
|
|
.name = "e16c",
|
|
|
|
|
.canonical_name = "MCST Elbrus 16C",
|
|
|
|
|
.gdb_arch = "elbrus-v6",
|
|
|
|
|
.isa_version = 6,
|
|
|
|
|
},
|
2020-11-08 19:27:47 +01:00
|
|
|
|
};
|
|
|
|
|
|
2020-11-14 10:20:18 +01:00
|
|
|
|
static inline void cpu_dump_state_br(CPUE2KState *env, FILE *f, int flags)
|
|
|
|
|
{
|
2020-11-26 19:25:43 +01:00
|
|
|
|
uint32_t br = e2k_state_br(env);
|
|
|
|
|
E2KBnState *bn = &env->bn;
|
|
|
|
|
E2KBpState *bp = &env->bp;
|
2020-11-14 10:20:18 +01:00
|
|
|
|
|
2020-11-26 18:03:25 +01:00
|
|
|
|
qemu_fprintf(f, "br 0x%x\n", br);
|
2020-11-26 19:25:43 +01:00
|
|
|
|
qemu_fprintf(f, " rbs %d\n", bn->base / 2);
|
|
|
|
|
qemu_fprintf(f, " rsz %d\n", bn->size / 2 - 1);
|
|
|
|
|
qemu_fprintf(f, " rcur %d\n", bn->cur / 2);
|
|
|
|
|
qemu_fprintf(f, " psz %d\n", bp->size);
|
|
|
|
|
qemu_fprintf(f, " pcur %d\n", bp->cur);
|
2020-11-14 10:20:18 +01:00
|
|
|
|
}
|
|
|
|
|
|
2020-10-19 17:20:55 +02:00
|
|
|
|
void e2k_cpu_dump_state(CPUState *cs, FILE *f, int flags)
|
|
|
|
|
{
|
2020-11-08 19:27:47 +01:00
|
|
|
|
E2KCPU *cpu = E2K_CPU(cs);
|
|
|
|
|
CPUE2KState *env = &cpu->env;
|
2020-11-10 13:06:44 +01:00
|
|
|
|
unsigned int i;
|
2020-11-08 19:27:47 +01:00
|
|
|
|
|
2021-02-18 19:51:45 +01:00
|
|
|
|
qemu_fprintf(f, " ip = " TARGET_FMT_lx "\n", env->ip);
|
2020-12-14 08:22:21 +01:00
|
|
|
|
qemu_fprintf(f, " pregs = 0x%016lx\n", env->pregs);
|
2020-11-26 18:03:25 +01:00
|
|
|
|
qemu_fprintf(f, " pcsp_lo = 0x%016lx\n", e2k_state_pcsp_lo(env));
|
|
|
|
|
qemu_fprintf(f, " pcsp_hi = 0x%016lx\n", e2k_state_pcsp_hi(env));
|
|
|
|
|
qemu_fprintf(f, " psp_lo = 0x%016lx\n", e2k_state_psp_lo(env));
|
|
|
|
|
qemu_fprintf(f, " psp_hi = 0x%016lx\n", e2k_state_psp_hi(env));
|
2020-12-11 08:37:23 +01:00
|
|
|
|
qemu_fprintf(f, " usd_lo = 0x%016lx\n", env->usd.lo);
|
|
|
|
|
qemu_fprintf(f, " usd_hi = 0x%016lx\n", env->usd.hi);
|
2020-11-26 18:03:25 +01:00
|
|
|
|
qemu_fprintf(f, " lsr = 0x%016lx\n", env->lsr);
|
2020-11-14 10:20:18 +01:00
|
|
|
|
cpu_dump_state_br(env, f, flags);
|
2020-11-26 18:03:25 +01:00
|
|
|
|
|
2020-12-01 13:00:12 +01:00
|
|
|
|
for (i = 0; i < E2K_REG_COUNT; i++) {
|
|
|
|
|
char name = i < E2K_NR_COUNT ? 'r' : 'g';
|
2020-12-13 10:07:42 +01:00
|
|
|
|
int tag = env->tags[i];
|
2020-12-02 14:06:50 +01:00
|
|
|
|
qemu_fprintf(f, "%%%c%d\t<%d%d> 0x%lx\n", name, i, tag >> 2, tag & 3,
|
2020-12-01 13:00:12 +01:00
|
|
|
|
env->regs[i]);
|
2020-11-26 18:03:25 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < 32; i++) {
|
2020-12-01 13:00:12 +01:00
|
|
|
|
int preg = (env->pregs >> (i * 2)) & 3;
|
2020-11-26 18:03:25 +01:00
|
|
|
|
qemu_fprintf(f, "pred%d\t<%d> %s\n", i, preg >> 1,
|
|
|
|
|
preg & 1 ? "true" : "false");
|
2020-11-10 13:06:44 +01:00
|
|
|
|
}
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void e2k_cpu_set_pc(CPUState *cs, vaddr value)
|
|
|
|
|
{
|
2020-11-08 19:27:47 +01:00
|
|
|
|
E2KCPU *cpu = E2K_CPU(cs);
|
|
|
|
|
|
|
|
|
|
cpu->env.ip = value;
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void e2k_cpu_synchronize_from_tb(CPUState *cs, const TranslationBlock *tb)
|
|
|
|
|
{
|
2020-11-08 19:27:47 +01:00
|
|
|
|
E2KCPU *cpu = E2K_CPU(cs);
|
2020-10-19 17:20:55 +02:00
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
cpu->env.ip = tb->pc;
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static bool e2k_cpu_has_work(CPUState *cs)
|
|
|
|
|
{
|
2020-11-28 09:08:22 +01:00
|
|
|
|
// TODO: e2k_cpu_has_work
|
2020-11-17 12:56:09 +01:00
|
|
|
|
qemu_log_mask(LOG_UNIMP, "e2k_cpu_has_work: not implemented\n");
|
2020-10-19 17:20:55 +02:00
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static char *e2k_cpu_type_name(const char *cpu_model)
|
|
|
|
|
{
|
2020-12-07 18:27:13 +01:00
|
|
|
|
return g_strdup(cpu_model);
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static ObjectClass *e2k_cpu_class_by_name(const char *cpu_model)
|
|
|
|
|
{
|
|
|
|
|
ObjectClass *oc;
|
|
|
|
|
char *typename;
|
|
|
|
|
|
2020-12-07 18:27:13 +01:00
|
|
|
|
#ifdef CONFIG_USER_ONLY
|
|
|
|
|
if (!strcasecmp(cpu_model, "any")) {
|
|
|
|
|
cpu_model = DEFAULT_CPU_MODEL;
|
|
|
|
|
}
|
2021-01-24 04:12:54 +01:00
|
|
|
|
#endif
|
2020-12-07 18:27:13 +01:00
|
|
|
|
|
2020-10-19 17:20:55 +02:00
|
|
|
|
typename = e2k_cpu_type_name(cpu_model);
|
|
|
|
|
oc = object_class_by_name(typename);
|
|
|
|
|
g_free(typename);
|
|
|
|
|
return oc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void e2k_cpu_realizefn(DeviceState *dev, Error **errp)
|
|
|
|
|
{
|
2020-11-08 19:27:47 +01:00
|
|
|
|
CPUState *cs = CPU(dev);
|
|
|
|
|
E2KCPUClass *ecc = E2K_CPU_GET_CLASS(dev);
|
|
|
|
|
Error *local_err = NULL;
|
|
|
|
|
E2KCPU *cpu = E2K_CPU(dev);
|
|
|
|
|
CPUE2KState *env = &cpu->env;
|
|
|
|
|
|
|
|
|
|
env->version = env->def.isa_version;
|
|
|
|
|
|
|
|
|
|
cpu_exec_realizefn(cs, &local_err);
|
|
|
|
|
if (local_err != NULL) {
|
|
|
|
|
error_propagate(errp, local_err);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
qemu_init_vcpu(cs);
|
|
|
|
|
|
|
|
|
|
ecc->parent_realize(dev, errp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void e2k_cpu_initfn(Object* obj)
|
|
|
|
|
{
|
|
|
|
|
E2KCPU *cpu = E2K_CPU(obj);
|
|
|
|
|
E2KCPUClass *ecc = E2K_CPU_GET_CLASS(obj);
|
|
|
|
|
CPUE2KState *env = &cpu->env;
|
|
|
|
|
|
|
|
|
|
cpu_set_cpustate_pointers(cpu);
|
|
|
|
|
|
|
|
|
|
if (ecc->cpu_def) {
|
|
|
|
|
env->def = *ecc->cpu_def;
|
|
|
|
|
}
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-07 18:27:13 +01:00
|
|
|
|
static gchar* e2k_cpu_gdb_arch_name(CPUState *cs)
|
|
|
|
|
{
|
|
|
|
|
E2KCPU *cpu = E2K_CPU(cs);
|
|
|
|
|
CPUE2KState *env = &cpu->env;
|
|
|
|
|
|
|
|
|
|
return g_strdup_printf("%s:%d", env->def.gdb_arch, TARGET_LONG_BITS);
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
static struct TCGCPUOps e2k_tcg_ops = {
|
|
|
|
|
.initialize = e2k_tcg_initialize,
|
|
|
|
|
.synchronize_from_tb = e2k_cpu_synchronize_from_tb,
|
|
|
|
|
.do_interrupt = e2k_cpu_do_interrupt,
|
|
|
|
|
#ifdef CONFIG_SOFTMMU
|
|
|
|
|
.cpu_exec_interrupt = e2k_cpu_exec_interrupt,
|
|
|
|
|
.tlb_fill = e2k_cpu_tlb_fill,
|
|
|
|
|
#endif
|
2020-12-08 08:11:56 +01:00
|
|
|
|
};
|
2020-11-08 19:27:47 +01:00
|
|
|
|
|
2020-10-19 17:20:55 +02:00
|
|
|
|
static void e2k_cpu_class_init(ObjectClass *oc, void *data)
|
|
|
|
|
{
|
2020-11-08 19:27:47 +01:00
|
|
|
|
E2KCPUClass *ecc = E2K_CPU_CLASS(oc);
|
2020-10-19 17:20:55 +02:00
|
|
|
|
CPUClass *cc = CPU_CLASS(oc);
|
|
|
|
|
DeviceClass *dc = DEVICE_CLASS(oc);
|
|
|
|
|
|
|
|
|
|
device_class_set_parent_realize(dc, e2k_cpu_realizefn,
|
2020-11-08 19:27:47 +01:00
|
|
|
|
&ecc->parent_realize);
|
2020-10-19 17:20:55 +02:00
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
device_class_set_parent_reset(dc, e2k_cpu_reset, &ecc->parent_reset);
|
|
|
|
|
|
|
|
|
|
cc->has_work = e2k_cpu_has_work;
|
|
|
|
|
cc->dump_state = e2k_cpu_dump_state;
|
|
|
|
|
cc->set_pc = e2k_cpu_set_pc;
|
|
|
|
|
cc->class_by_name = e2k_cpu_class_by_name;
|
2020-10-19 17:20:55 +02:00
|
|
|
|
cc->disas_set_info = cpu_e2k_disas_set_info;
|
2020-11-08 19:27:47 +01:00
|
|
|
|
|
2020-12-07 18:27:13 +01:00
|
|
|
|
cc->gdb_arch_name = e2k_cpu_gdb_arch_name;
|
2020-11-16 19:54:23 +01:00
|
|
|
|
cc->gdb_read_register = e2k_cpu_gdb_read_register;
|
|
|
|
|
cc->gdb_write_register = e2k_cpu_gdb_write_register;
|
2020-11-17 12:56:09 +01:00
|
|
|
|
cc->gdb_num_core_regs = 574;
|
2020-11-16 19:54:23 +01:00
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
cc->tcg_ops = &e2k_tcg_ops;
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
static const TypeInfo e2k_cpu_type_info = {
|
2020-10-19 17:20:55 +02:00
|
|
|
|
.name = TYPE_E2K_CPU,
|
|
|
|
|
.parent = TYPE_CPU,
|
|
|
|
|
.instance_size = sizeof(E2KCPU),
|
|
|
|
|
.instance_init = e2k_cpu_initfn,
|
|
|
|
|
.abstract = true,
|
|
|
|
|
.class_size = sizeof(E2KCPUClass),
|
|
|
|
|
.class_init = e2k_cpu_class_init,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static void e2k_cpu_cpudef_class_init(ObjectClass *oc, void *data)
|
|
|
|
|
{
|
2020-11-08 19:27:47 +01:00
|
|
|
|
E2KCPUClass *ecc = E2K_CPU_CLASS(oc);
|
|
|
|
|
ecc->cpu_def = data;
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
static void e2k_register_cpudef_type(const struct e2k_def_t *def)
|
2020-10-19 17:20:55 +02:00
|
|
|
|
{
|
|
|
|
|
char *typename = e2k_cpu_type_name(def->name);
|
|
|
|
|
TypeInfo ti = {
|
|
|
|
|
.name = typename,
|
|
|
|
|
.parent = TYPE_E2K_CPU,
|
|
|
|
|
.class_init = e2k_cpu_cpudef_class_init,
|
|
|
|
|
.class_data = (void *)def,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
type_register(&ti);
|
|
|
|
|
g_free(typename);
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
static void e2k_cpu_register_types(void)
|
2020-10-19 17:20:55 +02:00
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
type_register_static(&e2k_cpu_type_info);
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(e2k_defs); i++) {
|
|
|
|
|
e2k_register_cpudef_type(&e2k_defs[i]);
|
|
|
|
|
}
|
2020-10-19 17:20:55 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 19:27:47 +01:00
|
|
|
|
type_init(e2k_cpu_register_types)
|
2020-12-07 18:27:13 +01:00
|
|
|
|
|
|
|
|
|
void e2k_cpu_list(void)
|
|
|
|
|
{
|
|
|
|
|
unsigned int i;
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(e2k_defs); i++) {
|
|
|
|
|
qemu_printf("%6s (%-30s) ISA version: v%d\n",
|
|
|
|
|
e2k_defs[i].name,
|
|
|
|
|
e2k_defs[i].canonical_name,
|
|
|
|
|
e2k_defs[i].isa_version
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|