From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: cgen@sources.redhat.com
Subject: Confusion: setup-semantics? PC not updated? Immediate operands?
Date: Mon, 28 Jan 2002 16:03:00 -0000 [thread overview]
Message-ID: <200201290003.BAA12296@ignucius.axis.se> (raw)
Hm, I can't get anything out from setup-semantics in a
define-isa, like (example only):
(define-isa
(name cris)
(base-insn-bitsize 16)
(default-insn-word-bitsize 16)
(liw-insns 1)
(parallel-insns 1)
(setup-semantics
(error "Nothing happens"))
)
This when generating that big GCC-specific C switch
<arch>-switch.c, which seems generated from sim-cpu.scm. From
what little scheme I understand (I'm blissfully naive), it seems
only sid-cpu.scm, not sim-cpu.scm, supports setup-semantics.
I'd use it for purposes similar to that of arm.cpu.
Should it work?
On a related matter, it seems pc isn't updated for non-CTI
insns; it's value is that of the first insn in the chain.
I need it as an operand in non-CTI insns.
Oh right, there's a further related issue in the pipeline: how
do I best specify 16-bit and 32-bit immediate operands? The
immediate value is coded as indirect-pc-postincrement, "[pc+]",
where pc is mapped as one of the 16 general registers. I'm
currently hacking the update of pc in sim/cris/mloop.in in the
case for "xextract-pbb" (based on fr30/mloop.in). I guess it's
best to have a specific case for the "[pc+]" operand (leaving
cases for other registers in a generally specified insn), but I
need to at least tell CGEN to skip two or four bytes. I just
can't see where to specify that.
brgds, H-P
next reply other threads:[~2002-01-29 0:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-28 16:03 Hans-Peter Nilsson [this message]
2002-01-29 17:47 ` Ben Elliston
2002-01-29 18:34 ` Hans-Peter Nilsson
2002-01-29 20:06 ` Frank Ch. Eigler
2002-01-30 7:10 ` Hans-Peter Nilsson
2002-03-20 16:47 ` [RFA:] support setup-semantics in sim-cpu.scm (was: Re: Confusion: setup-semantics? ...) Hans-Peter Nilsson
2002-04-18 15:20 ` Hans-Peter Nilsson
2002-06-19 15:46 ` [RFA:] support setup-semantics in sim-cpu.scm Hans-Peter Nilsson
2002-03-22 9:16 ` Confusion: setup-semantics? PC not updated? Immediate operands? Doug Evans
2002-03-22 9:20 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200201290003.BAA12296@ignucius.axis.se \
--to=hans-peter.nilsson@axis.com \
--cc=cgen@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).