diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-06 16:06:35 -0800 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2017-12-13 16:11:14 -0800 |
commit | a18947c20dba2c0c38db8bde1ad4684995df4bbd (patch) | |
tree | 917bf2abbe439a6f99ede8cfafb25812dca54a9a /meta-xilinx-bsp/recipes-microblaze/gdb/files/0004-Patch-microblaze-Communicate-in-larger-blocks-with-t.patch | |
parent | 6ddc5873b0ede30e6542f0ab151a6236acc37944 (diff) | |
download | meta-xilinx-a18947c20dba2c0c38db8bde1ad4684995df4bbd.tar.gz |
meta-xilinx: Restructuring meta-xilinx to support multiple layers
As discussed previously on mailing list, we are proceeding with layer
restructuring. For rocko release we will have the following layers
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-xilinx-contrib
In the subsequent releases we will add other layers from Xilinx
meta-xilinx
->meta-xilinx-bsp (current meta-xilinx)
->meta-petalinux
->meta-xilinx-tools
->meta-xilinx-contrib
This will provide one clone to get all the required meta layers from
Xilinx for a complete solution, and the users can blacklist any layer
which they don't want to use using bblayer.conf.
This will enables us to help our vendors/partners to add their reference
designs, board definitions etc.
Recipe changes :
* Move reference design zybo-linux-bd.bb to meta-xilinx-contrib
* Move kernel patches realted to zybo-linux-bd-zynq7 board to
meta-xilinx-contrib
* Update README
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/recipes-microblaze/gdb/files/0004-Patch-microblaze-Communicate-in-larger-blocks-with-t.patch')
-rw-r--r-- | meta-xilinx-bsp/recipes-microblaze/gdb/files/0004-Patch-microblaze-Communicate-in-larger-blocks-with-t.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-microblaze/gdb/files/0004-Patch-microblaze-Communicate-in-larger-blocks-with-t.patch b/meta-xilinx-bsp/recipes-microblaze/gdb/files/0004-Patch-microblaze-Communicate-in-larger-blocks-with-t.patch new file mode 100644 index 00000000..b14e4092 --- /dev/null +++ b/meta-xilinx-bsp/recipes-microblaze/gdb/files/0004-Patch-microblaze-Communicate-in-larger-blocks-with-t.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | From 26e124f0d78233b1d976bd4b787f6a7866bcb7e7 Mon Sep 17 00:00:00 2001 | ||
2 | From: nagaraju <nmekala@xilix.com> | ||
3 | Date: Wed, 4 Jan 2012 16:59:33 +0530 | ||
4 | Subject: [PATCH 04/16] [Patch, microblaze]: Communicate in larger blocks with | ||
5 | the target | ||
6 | |||
7 | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> | ||
8 | Upstream-Status: Pending | ||
9 | --- | ||
10 | gdb/microblaze-tdep.c | 25 ++++++++++++++++++++++--- | ||
11 | 1 file changed, 22 insertions(+), 3 deletions(-) | ||
12 | |||
13 | diff --git a/gdb/microblaze-tdep.c b/gdb/microblaze-tdep.c | ||
14 | index 36cf1ca..76e87b3 100644 | ||
15 | --- a/gdb/microblaze-tdep.c | ||
16 | +++ b/gdb/microblaze-tdep.c | ||
17 | @@ -242,6 +242,10 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, | ||
18 | int flags = 0; | ||
19 | int save_hidden_pointer_found = 0; | ||
20 | int non_stack_instruction_found = 0; | ||
21 | + int n_insns; | ||
22 | + unsigned long *insn_block; | ||
23 | + gdb_byte *buf_block; | ||
24 | + int ti, tj; | ||
25 | |||
26 | /* Find the start of this function. */ | ||
27 | find_pc_partial_function (pc, &name, &func_addr, &func_end); | ||
28 | @@ -281,9 +285,23 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, | ||
29 | name, paddress (gdbarch, func_addr), | ||
30 | paddress (gdbarch, stop)); | ||
31 | |||
32 | +/* Do a block read to minimize the transaction with the Debug Agent */ | ||
33 | + n_insns = (stop == func_addr) ? 1 : ((stop - func_addr) / INST_WORD_SIZE); | ||
34 | + insn_block = (unsigned long *)calloc(n_insns, sizeof(unsigned long)); | ||
35 | + buf_block = (gdb_byte *)calloc(n_insns * INST_WORD_SIZE, sizeof(gdb_byte)); | ||
36 | + | ||
37 | + target_read_memory (func_addr, buf_block, n_insns * INST_WORD_SIZE ); | ||
38 | + | ||
39 | + for(ti = 0; ti < n_insns; ti++){ | ||
40 | + insn_block[ti] = 0; | ||
41 | + for( tj = ti * INST_WORD_SIZE; tj < (ti + 1) * INST_WORD_SIZE; tj++ ) | ||
42 | + insn_block[ti] = (insn_block[ti] << 8) | buf_block[tj]; | ||
43 | + } | ||
44 | + | ||
45 | for (addr = func_addr; addr < stop; addr += INST_WORD_SIZE) | ||
46 | { | ||
47 | - insn = microblaze_fetch_instruction (addr); | ||
48 | + //insn = microblaze_fetch_instruction (addr); | ||
49 | + insn = insn_block[(addr - func_addr) / INST_WORD_SIZE]; | ||
50 | op = microblaze_decode_insn (insn, &rd, &ra, &rb, &imm); | ||
51 | microblaze_debug ("%s %08lx\n", paddress (gdbarch, pc), insn); | ||
52 | |||
53 | @@ -409,8 +427,9 @@ microblaze_analyze_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, | ||
54 | part of the prologue. */ | ||
55 | if (save_hidden_pointer_found) | ||
56 | prologue_end_addr -= INST_WORD_SIZE; | ||
57 | - | ||
58 | - return prologue_end_addr; | ||
59 | + free(insn_block); | ||
60 | + free(buf_block); | ||
61 | + return prologue_end_addr; | ||
62 | } | ||
63 | |||
64 | static CORE_ADDR | ||
65 | -- | ||
66 | 1.9.0 | ||
67 | |||