[newlib-cygwin/main] amdgcn: remove unnecessary scalar cache flush

Corinna Vinschen corinna@sourceware.org
Tue Oct 31 12:37:35 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=12e3bac3ce562007e83c3c67243c85fcb5ee70a4

commit 12e3bac3ce562007e83c3c67243c85fcb5ee70a4
Author:     Andrew Stubbs <ams@codesourcery.com>
AuthorDate: Fri Oct 20 12:54:17 2023 +0100
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Tue Oct 31 13:36:45 2023 +0100

    amdgcn: remove unnecessary scalar cache flush
    
    The exit code isn't actually written via the scalar cache so the cache flush
    is not actually needed.

Diff:
---
 newlib/libc/machine/amdgcn/exit-value.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/newlib/libc/machine/amdgcn/exit-value.h b/newlib/libc/machine/amdgcn/exit-value.h
index 7aa2508bbd66..6b9d2411b7ce 100644
--- a/newlib/libc/machine/amdgcn/exit-value.h
+++ b/newlib/libc/machine/amdgcn/exit-value.h
@@ -32,7 +32,6 @@ exit_with_int (int val)
   *return_value = val;
 
   /* Terminate the current kernel.  */
-  asm ("s_dcache_wb");
   asm ("s_endpgm");
   __builtin_unreachable ();
 }


More information about the Newlib-cvs mailing list