* [Qemu-devel] Qemu - compiling error in tcg.c - flush_icache_range
@ 2011-10-01 22:44 Maurizio Caloro
2011-10-02 7:28 ` Mulyadi Santosa
0 siblings, 1 reply; 3+ messages in thread
From: Maurizio Caloro @ 2011-10-01 22:44 UTC (permalink / raw)
To: qemu-devel
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
>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
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Qemu - compiling error in tcg.c - flush_icache_range
2011-10-01 22:44 [Qemu-devel] Qemu - compiling error in tcg.c - flush_icache_range Maurizio Caloro
@ 2011-10-02 7:28 ` Mulyadi Santosa
[not found] ` <20111002144321.293550@gmx.net>
0 siblings, 1 reply; 3+ messages in thread
From: Mulyadi Santosa @ 2011-10-02 7:28 UTC (permalink / raw)
To: Maurizio Caloro; +Cc: qemu-devel
Hi... :)
On Sun, Oct 2, 2011 at 05:44, Maurizio Caloro <mauric@gmx.ch> wrote:
>
> i was trying with this code that i found with googling but without any success
>
>>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?
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Qemu - compiling error in tcg.c - flush_icache_range
[not found] ` <20111002144321.293550@gmx.net>
@ 2011-10-02 17:30 ` Mulyadi Santosa
0 siblings, 0 replies; 3+ messages in thread
From: Mulyadi Santosa @ 2011-10-02 17:30 UTC (permalink / raw)
To: Maurizio Caloro; +Cc: qemu-devel
Hi :)
Don't forget to cc qemu-devel too next time :)
On Sun, Oct 2, 2011 at 21:43, Maurizio Caloro <mauric@gmx.ch> wrote:
> 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 :)
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-02 17:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-01 22:44 [Qemu-devel] Qemu - compiling error in tcg.c - flush_icache_range Maurizio Caloro
2011-10-02 7:28 ` Mulyadi Santosa
[not found] ` <20111002144321.293550@gmx.net>
2011-10-02 17:30 ` Mulyadi Santosa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).