Skip to contentSkip to conversation

Qemu - compiling error in tcg.c - flush_icache_range

Qemu-devel Maurizio Caloro 2 participants 3 messages Oct 1, 2011 – Oct 2, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello together
iam new here in this forum, i try to compile qemu 0.15.0 on Netbsd 5.1 MacPPC G4 machine i standing now here and i don't found any solution to fix this Error.

bash-4.2# make
=> Bootstrap dependency digest>=20010302: found digest-20080510 ===> Building for qemu-0.15.0nb1
LINK i386-softmmu/qemu
tcg/tcg.o: In function `tcg_prologue_init':
/usr/pkgsrc/emulators/qemu/work/qemu-0.15.0/tcg/tcg.c:250: undefined reference to `flush_icache_range'
tcg/tcg.o: In function `ppc_tb_set_jmp_target':
/usr/pkgsrc/emulators/qemu/work/qemu-0.15.0/tcg/ppc/tcg-target.c:1291:
undefined reference to `flush_icache_range'
tcg/tcg.o: In function `tcg_gen_code':
/usr/pkgsrc/emulators/qemu/work/qemu-0.15.0/tcg/tcg.c:2161: undefined reference to `flush_icache_range'
make[1]: *** [qemu] Error 1
gmake: *** [subdir-i386-softmmu] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/emulators/qemu
*** Error code 1

i was trying with this code that i found with googling but without any success

Quoted 9 lines

tcg.c
/* return tcg_gen_code_common(s, gen_code_buf, offset); */

   int ret;
   ret = tcg_gen_code_common(s, gen_code_buf, offset);
   /* flush instruction cache */
   flush_icache_range((unsigned long)gen_code_buf,
                     ((unsigned long)s->code_ptr);
   return ret;
   }

thanks for any help to solve me this problem.
best regards
Mauri

Signature · 2 lines
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone
#1 lore raw

Hi... :)

Quoted 12 lines · Maurizio Caloro

i was trying with this code that i found with googling but without any success

Quoted 9 lines

tcg.c
   /* return tcg_gen_code_common(s, gen_code_buf, offset); */ int ret;
   ret = tcg_gen_code_common(s, gen_code_buf, offset); /* flush instruction cache */ flush_icache_range((unsigned long)gen_code_buf, ((unsigned long)s->code_ptr); return ret;
   }

IIRC, that's the part of patch series....or maybe just a single patch .... against latest Qemu git....so, are you sure you are applying that patch correctly? or pull straight from qemu git repository?

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi :)

Don't forget to cc qemu-devel too next time :)

Quoted 1 line · Maurizio Caloro

After "git" the new source i don't realy found any solution, but changing the lines now Qmue0.15.0 running also in me Netbsd G4 Mac. Proparly this change are only "*BSD" conform and not any coding mistake. Sorry for confusing but and thanks very mutch for your Help and Input!

Great, glad you fixed it :)

So, looks like you're quite read to submit a patch to fix this thing in upstream git repository :)

Signature · 7 lines
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com