Liste des Groupes | Revenir à c arch |
On Fri, 30 Aug 2024 22:42:19 +0000, BGB wrote:This rule is in fact really simple:
On 8/30/2024 1:11 PM, MitchAlsup1 wrote:ADA wants these.On Thu, 29 Aug 2024 19:07:29 +0000, BGB wrote:>
Integer Overflow
Not usually a thing. Pretty much everything seems to treat integer
overflow as silently wrapping.
>Must be 100% to guarantee upwards compatibility.
>Bad Instruction encoding--OpCode exists but not as this>
  instruction uses it. Random code generation can use
  every instruction without privilege.
Hit or miss.
>
Will usually fault on invalid instructions.
There is logic in place to reject privileged instructions in user-mode,Yes, it is a pain--but a pain that is absolutely worth it.
if the CPU is actually run in user-mode. Some of this is still TODO
(currently, TestKern is still running everything in Supervisor Mode).
>Bad practice == not industrial quality.
The alternative is to treat them as UB, so they may be one of:
Trap;
Do something else (like, if an instruction was added);
Do something wonky / unintended.
>
In practice, this seems to be more how it works.
>YOU FAIL TO UNDERSTAND--there is an area in memory where the
> Bad address--address exists but you are not allowed to touch it> Â Â
with LD or ST instruction or to attempt to execute it.
>
If the MMU is enabled, it should fault on bad memory accesses.
>
In physical addressing mode, it does not trap.
preserved registers are stored--stored in a way that only 3
instructions can access--and the PTE is marked RWE=000
This prevents damaging the contract between callee and caller.
3 instructions can access these pages ENTER, EXIT and RET
nothing else.
>It is NOT a BAD address--it is a good but inaccessible address
IIRC, there was a mechanism on the bus to deal with accesses to bad
physical addresses (returning all zeroes). Otherwise, trying to access
an invalid address would cause the CPU to deadlock.
outside those 3 instructions.>You Cannot get rounding correct unless you "compute as if to
>>>
As I understand it, you don't even get FMUL correctly rounded.
To get it properly rounded you have to compute the full 53*53
product.
AFAICT, this wasn't required for the 1985 spec...
infinite precision" and then follow the rules of rounding
(all modes).
Les messages affichés proviennent d'usenet.