* spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 13 Aug 2008 13:38:01 +0000 (13:38 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 13 Aug 2008 13:38:01 +0000 (13:38 +0000)
query valid) bit.  Ignore bits outside the condition field.
(info_spu_proxydma_command): Ignore bits outside the field.

gdb/ChangeLog
gdb/spu-tdep.c

index c5896a34fdb025e2b62a2406aa346ca0d486de36..eed32dae5f3749aff074661107589ce87c47e062 100644 (file)
@@ -1,3 +1,9 @@
+2008-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
+       query valid) bit.  Ignore bits outside the condition field.
+       (info_spu_proxydma_command): Ignore bits outside the field.
+
 2008-08-12  Michael Snyder  <msnyder@vmware.com>
 
        * MAINTAINERS: Update my email address.
index 64c7051c6cad226ceee33595489830f96ac6a932..92cbd3005b3fd370e98d5c3596d981716056368a 100644 (file)
@@ -1925,15 +1925,15 @@ info_spu_dma_command (char *args, int from_tty)
     }
   else
     {
-      const char *query_msg;
+      const char *query_msg = _("no query pending");
 
-      switch (dma_info_type)
-       {
-       case 0: query_msg = _("no query pending"); break;
-       case 1: query_msg = _("'any' query pending"); break;
-       case 2: query_msg = _("'all' query pending"); break;
-       default: query_msg = _("undefined query type"); break;
-       }
+      if (dma_info_type & 4)
+       switch (dma_info_type & 3)
+         {
+           case 1: query_msg = _("'any' query pending"); break;
+           case 2: query_msg = _("'all' query pending"); break;
+           default: query_msg = _("undefined query type"); break;
+         }
 
       printf_filtered (_("Tag-Group Status  0x%s\n"),
                       phex (dma_info_status, 4));
@@ -1990,7 +1990,7 @@ info_spu_proxydma_command (char *args, int from_tty)
     {
       const char *query_msg;
 
-      switch (dma_info_type)
+      switch (dma_info_type & 3)
        {
        case 0: query_msg = _("no query pending"); break;
        case 1: query_msg = _("'any' query pending"); break;
This page took 0.0301399999999999 seconds and 4 git commands to generate.