target/6500: Sparc.md's prefetch is buggy

davem@redhat.com davem@redhat.com
Sun Apr 28 10:16:00 GMT 2002


>Number:         6500
>Category:       target
>Synopsis:       Sparc.md's prefetch is buggy
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 28 05:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     davem@redhat.com
>Release:        GCC cvs 3.1
>Organization:
>Environment:
sparc*-*
>Description:
The prefetch instruction case used in sparc.md
for locality==3 is wrong, prefetch page does something
totally different from the other prefetch types.
It prefetches TLB translations, it doesn't bring
any data into the data caches of the processor.
>How-To-Repeat:

>Fix:
Change locality==3 case in sparc.md's prefetch instruction
to use prefetch function 0 for reads and 2 for writes.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list