Patchwork fix linux-user microblaze ELF_ARCH definition

login
register
mail settings
Submitter Mike Frysinger
Date Jan. 17, 2010, 6:15 a.m.
Message ID <1263708905-482-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/43019/
State New
Headers show

Comments

Mike Frysinger - Jan. 17, 2010, 6:15 a.m.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 linux-user/elfload.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Edgar Iglesias - Jan. 17, 2010, 8:55 a.m.
On Sun, Jan 17, 2010 at 01:15:05AM -0500, Mike Frysinger wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  linux-user/elfload.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)


Applied, thanks.


> 
> diff --git a/linux-user/elfload.c b/linux-user/elfload.c
> index 9b65005..abc5332 100644
> --- a/linux-user/elfload.c
> +++ b/linux-user/elfload.c
> @@ -652,7 +652,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUState *env)
>  
>  #define ELF_CLASS   ELFCLASS32
>  #define ELF_DATA	ELFDATA2MSB
> -#define ELF_ARCH    EM_MIPS
> +#define ELF_ARCH    EM_XILINX_MICROBLAZE
>  
>  static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
>  {
> -- 
> 1.6.6
>

Patch

diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 9b65005..abc5332 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -652,7 +652,7 @@  static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUState *env)
 
 #define ELF_CLASS   ELFCLASS32
 #define ELF_DATA	ELFDATA2MSB
-#define ELF_ARCH    EM_MIPS
+#define ELF_ARCH    EM_XILINX_MICROBLAZE
 
 static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
 {