Changeset 159


Ignore:
Timestamp:
Dec 31, 2003, 3:01:06 AM (21 years ago)
Author:
Gary Byers
Message:

MACPTR->STACK zeroes domain, type fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/compiler/PPC/ppc-vinsns.lisp

    r78 r159  
    22432243  (mr dest ppc32::allocptr)
    22442244  (clrrwi ppc32::allocptr ppc32::allocptr ppc32::ntagbits)
     2245  ;; It's not necessary to zero out the domain/type fields, since newly
     2246  ;; heap-allocated memory's guaranteed to be 0-filled.
    22452247  (stw address ppc32::macptr.address dest))
    22462248
     
    22532255  (stw header (+ 8 ppc32::fulltag-misc ppc32::macptr.header) ppc32::tsp)
    22542256  (stw address (+ 8 ppc32::fulltag-misc ppc32::macptr.address) ppc32::tsp)
     2257  ;; It -is- necessary to zero out the domain/type fields here, since
     2258  ;; stack-allocated memory isn't guaranteed to be 0-filled.
     2259  (stfd ppc32::fp-zero (+ 8 ppc32::fulltag-misc ppc32::macptr.domain) ppc32::tsp)
    22552260  (la dest (+ 8 ppc32::fulltag-misc) ppc32::tsp))
    22562261
Note: See TracChangeset for help on using the changeset viewer.