Hello again,
i found another problem in decode. c. As I have variable instruction
size, decode.c does not handle base_insn and insn in the right way.
The file looks like this:
const IDESC *
proc8bf_decode (SIM_CPU *current_cpu, IADDR pc,
CGEN_INSN_INT base_insn, CGEN_INSN_INT entire_insn,
ARGBUF *abuf)
{
/* Result of decoder. */
PROC8BF_INSN_TYPE itype;
{
CGEN_INSN_INT insn = base_insn;
{
unsigned int val = (((insn >> 0) & (63 << 0)));
switch (val)
{
case 0 :
if ((entire_insn & 0xff) == 0x0)
{ itype = PROC8BF_INSN_NOP; goto extract_sfmt_nop; }
itype = PROC8BF_INSN_X_INVALID; goto extract_sfmt_empty;