]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
microblaze: KGDB little endian support
authorMichal Simek <monstr@monstr.eu>
Tue, 28 Sep 2010 05:49:17 +0000 (15:49 +1000)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:58 +0000 (15:51 +1000)
Just need to use little-endian opcode for brki r16, 0x18

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Jason Wessel <jason.wessel@windriver.com>
arch/microblaze/kernel/kgdb.c

index 9b5a817605ec11e04fa4887471b1feed7867e046..09a5e82861371ef35e3589ab89b534575ee162be 100644 (file)
@@ -142,5 +142,9 @@ void kgdb_arch_exit(void)
  * Global data
  */
 struct kgdb_arch arch_kgdb_ops = {
+#ifdef __MICROBLAZEEL__
+       .gdb_bpt_instr = {0x18, 0x00, 0x0c, 0xba}, /* brki r16, 0x18 */
+#else
        .gdb_bpt_instr = {0xba, 0x0c, 0x00, 0x18}, /* brki r16, 0x18 */
+#endif
 };