* [parisc-linux] How hp implemented 'undefined instruction'?
@ 2006-08-26 13:05 Joel Soete
2006-08-26 15:21 ` Kyle McMartin
0 siblings, 1 reply; 3+ messages in thread
From: Joel Soete @ 2006-08-26 13:05 UTC (permalink / raw)
To: parisc-linux
Hello all,
In cpu books (parisc2.0.pdf or pa11_acd.pdf), in some well defined conditions, an insn can be an 'undefined instruction'.
Those books said about this:
--- snip ---
Within each major opcode, there may be undefined opcode extensions and
modifiers (these are undefined instructions). Interpretation of these opcodes
is left to the implementor, but system integrity is not compromised.
An undefined instruction, or sequence of undefined instructions, executed at a
given privilege level has no effect on system state other than what would have
been produced by a sequence of defined instructions running at the same
privilege level. This limits the possible side-effects that could
result from undefined instructions.
Undefined operations are equivalently specified. These result from normally
defined instructions but with operands or specifiers that are explicitly
disallowed.
--- snip ---
In "Interpretation of these opcodes is left to the implementor", I understand HP's integration of those cpu n their system?
But the text make me thought they aren't trap?
Does system behave like it's some kind of nop?
TIA,
Joel
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [parisc-linux] How hp implemented 'undefined instruction'?
2006-08-26 13:05 [parisc-linux] How hp implemented 'undefined instruction'? Joel Soete
@ 2006-08-26 15:21 ` Kyle McMartin
[not found] ` <44F0A3B5.605@scarlet.be>
0 siblings, 1 reply; 3+ messages in thread
From: Kyle McMartin @ 2006-08-26 15:21 UTC (permalink / raw)
To: Joel Soete; +Cc: parisc-linux
On Sat, Aug 26, 2006 at 01:05:55PM +0000, Joel Soete wrote:
> Within each major opcode, there may be undefined opcode extensions and
> modifiers (these are undefined instructions). Interpretation of these
> opcodes
> is left to the implementor, but system integrity is not compromised.
> An undefined instruction, or sequence of undefined instructions, executed
> at a
> given privilege level has no effect on system state other than what would
> have
> been produced by a sequence of defined instructions running at the same
> privilege level. This limits the possible side-effects that could
> result from undefined instructions.
>
> Undefined operations are equivalently specified. These result from normally
> defined instructions but with operands or specifiers that are explicitly
> disallowed.
> --- snip ---
I believe what they mean here is "Implementation-specific" opcodes. If you
look in the PCXL2 ERS, there are unarchitected additions to the instruction
set.
I hand crafted a binary using some of these extended insns, and they didn't
cause a SIGILL on a PA8500 (vastly different from PCXL2...) I believe the
insn in question was a little endian LDW.
However, if you craft an insn outside of the defined major opcodes, you
definitely will get a SIGILL trap.
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-26 22:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-26 13:05 [parisc-linux] How hp implemented 'undefined instruction'? Joel Soete
2006-08-26 15:21 ` Kyle McMartin
[not found] ` <44F0A3B5.605@scarlet.be>
2006-08-26 22:11 ` Michael S. Zick
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.