Module: Mesa
Branch: master
Commit: 462d62351d2f02d85a35f386994bfd79501f9f7d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=462d62351d2f02d85a35f386994bfd79501f9f7d

Author: Alejandro PiƱeiro <[email protected]>
Date:   Wed Sep 23 23:54:44 2020 +0200

broadcom/simulator: update to a newer simulator

Some headers were moved, and macros renamed.

Reviewed-by: Eric Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7007>

---

 src/broadcom/simulator/v3dx_simulator.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/broadcom/simulator/v3dx_simulator.c 
b/src/broadcom/simulator/v3dx_simulator.c
index dee3e67992c..cbf257859b3 100644
--- a/src/broadcom/simulator/v3dx_simulator.c
+++ b/src/broadcom/simulator/v3dx_simulator.c
@@ -46,7 +46,7 @@
 #define HW_REGISTER_RO(x) (x)
 #define HW_REGISTER_RW(x) (x)
 #if V3D_VERSION >= 41
-#include "libs/core/v3d/registers/4.1.34.0/v3d.h"
+#include "libs/core/v3d/registers/4.1.35.0/v3d.h"
 #else
 #include "libs/core/v3d/registers/3.3.0.0/v3d.h"
 #endif
@@ -135,12 +135,12 @@ static void
 v3d_reload_gmp(struct v3d_hw *v3d)
 {
         /* Completely reset the GMP. */
-        V3D_WRITE(V3D_GMP_0_CFG,
-                  V3D_GMP_0_CFG_PROTENABLE_SET);
-        V3D_WRITE(V3D_GMP_0_TABLE_ADDR, g_gmp_ofs);
-        V3D_WRITE(V3D_GMP_0_CLEAR_LOAD, ~0);
-        while (V3D_READ(V3D_GMP_0_STATUS) &
-               V3D_GMP_0_STATUS_CFG_BUSY_SET) {
+        V3D_WRITE(V3D_GMP_CFG,
+                  V3D_GMP_CFG_PROTENABLE_SET);
+        V3D_WRITE(V3D_GMP_TABLE_ADDR, g_gmp_ofs);
+        V3D_WRITE(V3D_GMP_CLEAR_LOAD, ~0);
+        while (V3D_READ(V3D_GMP_STATUS) &
+               V3D_GMP_STATUS_CFG_BUSY_SET) {
                 ;
         }
 }
@@ -271,7 +271,7 @@ v3d_isr(uint32_t hub_status)
 
                 if (core_status & V3D_CTL_0_INT_STS_INT_GMPV_SET) {
                         fprintf(stderr, "GMP violation at 0x%08x\n",
-                                V3D_READ(V3D_GMP_0_VIO_ADDR));
+                                V3D_READ(V3D_GMP_VIO_ADDR));
                         abort();
                 } else {
                         fprintf(stderr,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to