This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode.
Reviewed-by: Andreas Färber
Signed-off-by: Thomas Falcon
---
Difference from v9:
Fixed a coding style mistake
---
target-ppc/gdbstub.c | 19
The first patch pulls the register length calculation into its own
function, and the second adds support for little endian ppc in gdbstub.
Thomas Falcon (2):
target-ppc: extract register length calculation in gdbstub
target-ppc: gdbstub allow byte swapping for reading/writing registers
This patch extracts the method to determine a register's size
into a separate function.
Reviewed-by: Andreas Färber
Signed-off-by: Thomas Falcon
---
target-ppc/gdbstub.c | 105 ++-
1 file changed, 71 insertions(+), 34 deletions(-)
diff --
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode.
Signed-off-by: Thomas Falcon
---
Differences from v8:
Separated into multiple patches
ppc_gdb_swap_register(...) is now a static function
Removed &quo
This patch extracts the method to determine a register's size
into a separate function.
Signed-off-by: Thomas Falcon
---
Differences from v8:
Separated into multiple patches
Removed "cpu" from function name
---
target-ppc/gdbstub.c | 105 ++-
The first patch pulls register length calculation into its own
function and the second adds support for little endian ppc in gdbstub.
Thomas Falcon (2):
target-ppc: extract register length calculation in gdbstub
target-ppc: gdbstub allow byte swapping for reading/writing registers
target
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Differences for v7
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Differences from v6
On 02/28/2014 03:32 PM, Thomas Falcon wrote:
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed
On 03/04/2014 09:31 AM, Thomas Falcon wrote:
On 02/28/2014 03:32 PM, Thomas Falcon wrote:
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any
On 02/28/2014 03:32 PM, Thomas Falcon wrote:
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Differences from v5
On 02/28/2014 11:37 AM, Richard Henderson wrote:
On 02/26/2014 02:51 PM, Thomas Falcon wrote:
+void ppc_cpu_gdb_swap_register(uint8_t *mem_buf, int n)
+{
+int len = ppc_cpu_gdb_register_len(n);
+int i = 0;
+uint8_t tmp;
+for (i = 0; i < len/2; i++) {
+tmp = *(mem_buf
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Differences from v4
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Differences from v3
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Differences from v2
On 01/20/2014 08:33 AM, Alexander Graf wrote:
On 17.01.2014, at 22:02, Thomas Falcon wrote:
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Differences from v2
On 01/16/2014 11:10 AM, Alexander Graf wrote:
On 16.01.2014, at 17:59, Thomas Falcon wrote:
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
This patch allows registers to be properly read from and written to
when using the gdbstub to debug a ppc guest running in little
endian mode. It accomplishes this goal by byte swapping the values of
any registers if the MSR:LE value is set.
Signed-off-by: Thomas Falcon
---
Have created wrapper
-by: Thomas Falcon
---
target-ppc/gdbstub.c | 50 --
1 file changed, 32 insertions(+), 18 deletions(-)
diff --git a/target-ppc/gdbstub.c b/target-ppc/gdbstub.c
index 1c91090..eba501a 100644
--- a/target-ppc/gdbstub.c
+++ b/target-ppc/gdbstub.c
-by: Thomas Falcon
---
target-ppc/gdbstub.c | 50 --
1 file changed, 32 insertions(+), 18 deletions(-)
diff --git a/target-ppc/gdbstub.c b/target-ppc/gdbstub.c
index 1c91090..eba501a 100644
--- a/target-ppc/gdbstub.c
+++ b/target-ppc/gdbstub.c
22 matches
Mail list logo