Thread (14 messages) 14 messages, 5 authors, 2021-03-05

RE: [PATCH v2 1/3] powerpc: sstep: Fix load and update emulation

From: David Laight <hidden>
Date: 2021-02-04 10:31:15

From: Segher Boessenkool
Sent: 03 February 2021 21:18
...
Power9 does:

  Load with Update Instructions (RA = 0)
    EA is placed into R0.
Does that change the value of 0?
Rather reminds me of some 1960s era systems that had the small integers
at fixed (global) addresses.
FORTRAN always passes by reference, pass 0 and the address of the global
zero location was passed, the called function could change 0 to 1 for
the entire computer!
  Load with Update Instructions (RA = RT)
    The storage operand addressed by EA is accessed. The displacement
    field is added to the data returned by the load and placed into RT.
Shame that isn't standard - could be used to optimise some code.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help