Skip to contentSkip to conversation

[5083] PPC: Switch a few instructions to TCG

Qemu-devel Aurelien Jarno 4 participants 7 messages Aug 24, 2008 – Aug 27, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5083

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5083
Author:   aurel32
Date:     2008-08-24 19:05:35 +0000 (Sun, 24 Aug 2008)

Log Message:
-----------
PPC: Switch a few instructions to TCG

Modified Paths:
--------------
trunk/target-ppc/op.c
trunk/target-ppc/op_helper.c
trunk/target-ppc/op_helper.h
trunk/target-ppc/translate.c

Added Paths:
-----------
trunk/target-ppc/helper.h

Added: trunk/target-ppc/helper.h
===================================================================

target-ppc/helper.h +21 -0
@@ -0,0 +1,21 @@
+#ifndef DEF_HELPER
+#define DEF_HELPER(ret, name, params) ret name params;
+#endif
+
+DEF_HELPER(target_ulong, do_load_cr, (void))
+DEF_HELPER(void, do_print_mem_EA, (target_ulong))
+DEF_HELPER(void, do_store_cr, (uint32_t))
+
+#if !defined (CONFIG_USER_ONLY)
+DEF_HELPER(void, do_store_msr, (target_ulong))
+#if defined(TARGET_PPC64)
+DEF_HELPER(void, do_store_msr_32, (target_ulong))
+#endif
+#endif
+
+DEF_HELPER(target_ulong, do_popcntb, (target_ulong))
+#if defined(TARGET_PPC64)
+DEF_HELPER(target_ulong, do_popcntb_64, (target_ulong))
+#endif
+
+

Modified: trunk/target-ppc/op.c
===================================================================

target-ppc/op.c +0 -87

122 lines not on this page · raw message

Modified: trunk/target-ppc/op_helper.c
===================================================================

target-ppc/op_helper.c +27 -19

85 lines not on this page · raw message

Modified: trunk/target-ppc/op_helper.h
===================================================================

target-ppc/op_helper.h +0 -6
@@ -51,7 +51,6 @@
 void do_print_mem_EA (target_ulong EA);
 
 /* Registers load and stores */
-void do_load_cr (void);
 void do_store_cr (uint32_t mask);
 #if defined(TARGET_PPC64)
 void do_store_pri (int prio);
@@ -88,10 +87,6 @@
 void do_subfzeo_64 (void);
 void do_srad (void);
 #endif
-void do_popcntb (void);
-#if defined(TARGET_PPC64)
-void do_popcntb_64 (void);
-#endif
 
 /* Floating-point arithmetic helpers */
 void do_compute_fprf (int set_class);
@@ -138,7 +133,6 @@
 void do_td (int flags);
 #endif
 #if !defined(CONFIG_USER_ONLY)
-void do_store_msr (void);
 void do_rfi (void);
 #if defined(TARGET_PPC64)
 void do_rfid (void);

Modified: trunk/target-ppc/translate.c
===================================================================

target-ppc/translate.c +38 -18

152 lines not on this page · raw message

#1 lore raw
Quoted 8 lines · Aurelien Jarno

Revision: 5083

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5083
Author:   aurel32
Date:     2008-08-24 19:05:35 +0000 (Sun, 24 Aug 2008)

Log Message:
-----------
PPC: Switch a few instructions to TCG

It seems like you forgot to consider that I might be working on this subject, as I announced here last month and care if you break my work in any way.
Then, you also "forgot" to wait for the fixes needed to address regression that have been introduced by previous inconsidered commits in PowerPC emulation: I also said that this was the _first thing_ to be done before anything else in PowePC code.
Then, I can be sure that you "forgot" to test if your patch breaks any PowerPC targets, as some do not run now...
Last but not least, you also "forgot" to submit your patch, wait for comments, reviews, tests...

All this is unacceptable; furthermore, just giving a quick look, there seem to be many things that should never have been commited as-is and have to be fixed before this set of could eventually be merged.

Please revert_ now_.
Thanks by advance.

Signature · 2 lines
J. Mayer <[email protected]>
Never organized
#2 lore raw
Quoted 22 lines · J. Mayer
Quoted 8 lines · Aurelien Jarno

Revision: 5083

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5083
Author:   aurel32
Date:     2008-08-24 19:05:35 +0000 (Sun, 24 Aug 2008)

Log Message:
-----------
PPC: Switch a few instructions to TCG

It seems like you forgot to consider that I might be working on this subject, as I announced here last month and care if you break my work in any way.
Then, you also "forgot" to wait for the fixes needed to address regression that have been introduced by previous inconsidered commits in PowerPC emulation: I also said that this was the _first thing_ to be done before anything else in PowePC code.
Then, I can be sure that you "forgot" to test if your patch breaks any PowerPC targets, as some do not run now...
Last but not least, you also "forgot" to submit your patch, wait for comments, reviews, tests...

Quoted 5 lines

All this is unacceptable; furthermore, just giving a quick look, there seem to be many things that should never have been commited as-is and have to be fixed before this set of could eventually be merged.

Please revert_ now_.

Sorry, I have probably missed your email, reverted.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#3 lore raw
In reply to J. Mayer

Am 25.08.2008 um 00:08 schrieb J. Mayer:

Quoted 10 lines · Aurelien Jarno
Quoted 8 lines

Revision: 5083

         http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5083
Author:   aurel32
Date:     2008-08-24 19:05:35 +0000 (Sun, 24 Aug 2008)

Log Message:
-----------
PPC: Switch a few instructions to TCG

Quoted 9 lines

It seems like you forgot to consider that I might be working on this subject, as I announced here last month and care if you break my work in any way.
Then, you also "forgot" to wait for the fixes needed to address regression that have been introduced by previous inconsidered commits in PowerPC emulation: I also said that this was the _first thing_ to be done before anything else in PowePC code.
Then, I can be sure that you "forgot" to test if your patch breaks any PowerPC targets, as some do not run now...

Excuse me, I have not been able to run Linux on a single ppc target within the last _year_. Something is severely broken all that time, not just now.

Quoted 4 lines

Last but not least, you also "forgot" to submit your patch, wait for comments, reviews, tests...

All this is unacceptable;

As reported by René some months ago, you submitted a binary OHW update (r3309) but neither updated the source on your website nor QEMU's diff against it. Probably you just forgot, but don't be so harsh to others then. It's good to see that someone still cares about the PowerPC targets at all! Apart from Laurent, no one cared to review his OHW patch since then (not even complaining that it's whitespace-damaged). Nor did anyone complain that the PowerPC 'patch' by Salvatore was no patch at all but a gzipped tarball of apparently modified 0.9.1 source files - not yet reviewed at all this month.

Last month you actually said you were *planning* to port Alpha and PowerPC, with Alpha first, but had no time and reference hardware - your last commit is over half a year ago, so since there were no Alpha commits no one would expect you to work on PowerPC already given your statement. Most conversions to TCG (including the original introduction) were done without testing periods, step-by-step on trunk. Please don't fight over who's code gets committed, rather combine your efforts to get ppc usable again. If you'd post a link to your branch with work-in-progress like malc does that might help keep collisions low.

Thanks,
Andreas

#4 lore raw
Quoted 56 lines · Andreas Färber

Am 25.08.2008 um 00:08 schrieb J. Mayer:

Quoted 10 lines · Aurelien Jarno
Quoted 8 lines

Revision: 5083

         http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5083
Author:   aurel32
Date:     2008-08-24 19:05:35 +0000 (Sun, 24 Aug 2008)

Log Message:
-----------
PPC: Switch a few instructions to TCG

Quoted 11 lines

It seems like you forgot to consider that I might be working on this subject, as I announced here last month and care if you break my work in
any way.
Then, you also "forgot" to wait for the fixes needed to address regression that have been introduced by previous inconsidered commits in
PowerPC emulation: I also said that this was the _first thing_ to be done before anything else in PowePC code.
Then, I can be sure that you "forgot" to test if your patch breaks any PowerPC targets, as some do not run now...

Excuse me, I have not been able to run Linux on a single ppc target within the last _year_. Something is severely broken all that time, not just now.

Quoted 4 lines

Last but not least, you also "forgot" to submit your patch, wait for comments, reviews, tests...

All this is unacceptable;

As reported by René some months ago, you submitted a binary OHW update (r3309) but neither updated the source on your website nor QEMU's diff against it. Probably you just forgot, but don't be so harsh to others then. It's good to see that someone still cares about the PowerPC targets at all! Apart from Laurent, no one cared to review his OHW patch since then (not even complaining that it's whitespace-damaged). Nor did anyone complain that the PowerPC 'patch' by Salvatore was no patch at all but a gzipped tarball of apparently modified 0.9.1 source files - not yet reviewed at all this month.

Last month you actually said you were *planning* to port Alpha and PowerPC, with Alpha first, but had no time and reference hardware - your last commit is over half a year ago, so since there were no Alpha commits no one would expect you to work on PowerPC already given your statement. Most conversions to TCG (including the original introduction) were done without testing periods, step-by-step on trunk. Please don't fight over who's code gets committed, rather combine your efforts to get ppc usable again. If you'd post a link to your branch with work-in-progress like malc does that might help keep collisions low.

Thanks,
Andreas

Quoted 1 line · Johannes Schindelin

It seems you are in exactly the same self-destructive,

insulting-others

Quoted 5 lines

phase as I was a few weeks ago.

Please keep in mind: not only have you not notified anybody of your progress, thereby _asking_ for somebody else to step in, but you also leave a public record of being an asshole. And the worst: you do not

help

Quoted 3 lines

your soul to get better.

In this situation, it helped me to consult someone. Maybe this would

help

Quoted 4 lines

you, too.

Ciao,
Dscho "who has been there, and has done that"

Sorry if I only give one answer for everybody. And sorry it might be long and sounds like unnedeed noise.

I don't think I've been insulting anyone here or missing respect to anyone.
Just as a reminder, everyone who has commit writes in Qemu repository agreed, to be accepted as a commiter, to respect one and only one rule:
one can do whatever he wants in the code he take the responsability to maintain but shall never commit in any other place without the explicit agreement of all maintainers that might be affected by the changes. Then, I feel perfectly right not being happy when random untested patches are commited in this code.
And to be completelly honnest, my deep thought is that someone that is not able to respect this simple rule should never have write access to any repository.

The argument "I have not able to run the PowerPC target for at least a year" is fallacious, for at least 2 reasons. The first one is that there was successes reported to run those target during this time (and I've also been able to do so). I can admit I did not check the current repository and I know that embedded targets have already been broken; but if it is broken, and this is the second reason, the only thing to do is repair _before_ anything else can happen. Saying "it's broken" as an excuse to commit untested patches is never acceptable; it seems to me that anyone who do a commits is responsible and supposed to get sure that he won't break anything, then be ready to repair if it does, depite the care that has been taken to test as many cases as possible.

Then, I don't understand why some are talking about OHW here, which seems to be completelly out of the scope of Qemu development. Let me be more precise. First, the changes that is being talked about was requested by Qemu users and at that time I did explain here, on this list, what was in the patch I did and why I won't release a new version of OHW just for this patch (just relaxing some IDE status checks to avoid error cases triggered by some Qemu IDE implementation changes). Second, OHW is an independant project. It is provided as a helper for some PowerPC targets, even not for all, it has been successfully replaced by some proprietary firmwares (not only once) and everyone is free to use any other firmware he wants to boot a PowerPC target (and I know some do) or even fix the emulator so firmware from mass-market machines would run on Qemu (which is not far from being possible).

Now a simple question: if Qemu developpers really think I'm a "asshole", if all I do here is just insulting other developpers, and/or am not able to maintain the PowerPC code, then I don't understand why they never asked the project leaders to bannish me and looked for someone else who would fit the job ?

Finally, the only thing I feel you all are right is that I never talk a lot about what's going on in my work here and even less commit any of my patches. Then I understand that most of you consider the PowerPC targets as unmaintained.

For this reason, also to stop poluting the list, and to stop being the "asshole" who prevents anyone of you to improve Qemu the way you want, I now resign.

I will just do one last commit, in order to remove my name from the maintainer list; then I won't disturb you anymore again.

Please then cancel my commit rights and remove my mail from the mailing list.

As a conclusion, everyone is free to do all changes he wants in PowerPC & Alpha code, which are now officially unmaintained.

Aurelien, you might now want to push your patches again, as all mines now have a garbage status...

Thanks for this great project, have good luck and a lot of fun.

PS: and please don't worry, whatever one might think, I feel absolutelly OK with my soul and conscience.

(and please, don't reply to this, you would just increase the pollution level, what is never needed here, and you can be sure I won't reply anymore, nor here nor by private mail).

Signature · 2 lines
J. Mayer <[email protected]>
Never organized
#5 lore raw

Hi,

Quoted 8 lines · J. Mayer
Quoted 6 lines · Johannes Schindelin

It seems you are in exactly the same self-destructive, insulting-others phase as I was a few weeks ago.

Please keep in mind: not only have you not notified anybody of your progress, thereby _asking_ for somebody else to step in, but you also leave a public record of being an asshole.

FWIW I meant this to be private. And that was _not_ to protect _me_.

I tried to help Jocelyn in seeing how his emails may very well be perceived by others.

Obviously I failed.

Oh, well,
Dscho

#6 lore raw
In reply to J. Mayer

Am 26.08.2008 um 00:25 schrieb J. Mayer:

<snip>

The sole reason I replied to your original message was that I did in fact perceive it as inappropriate and very rude towards Aurelien.

I did not argue about your code or activity, nor did I ask you to resign, I just called on you to be a little more reasonable than this don't-touch-my-code attitude and resulting noise. In doing so, I tried to show you some valid reasons why someone would commit in "your" code in an Open Source project, starting with that you did not write to the list what you supposedly did (maybe a language problem). Aurelien could have posted a patch first, yes, but still that is no reason for such an eruption of anger. Instead you could've stated the pure facts, mentioning what exactly conflicted, and tried to cooperate on fixing it instead of commanding your fellow committer to withdraw any changes of his just because they're in "your" code.

And I am not aware of any insult from my side.

Concerning OHW, it has a lot to do with the ppc targets because ppc-softmmu and ppc64-softmmu both use it exclusively, for all machine variations I tried. QEMU does not ship any other ppc ROM. No one has yet reported success in replacing it with any other OpenFirmware implementation to my knowledge, Laurent seemed closest recently. If someone somewhere has supposedly succeeded replacing OHW somehow, I ask you, does knowing that really help users of QEMU?
CD/DVD booting is broken, making it impossible to set up a new ppc VM. There is no downloadable test image for ppc to check, so I recently tried a Haiku/ppc image and it didn't boot either. IDE status mismatches for both, despite the relaxed binary-only checks which your commit message does not describe. Earlier, pre-TCG, I reported getting to a yaboot prompt but it errored out shortly after with lots of apparently OHW related errors. So even if OHW is conceptually a different project, then, like for Bochs BIOS, QEMU relies on it working and needs a usable version out-of-tree or a diff against the out-of-tree version to apply the necessary fixes for QEMU. In an Open Source world I can't expect you to respond to my personal problems but since I wasn't doing anything fancy I consider it a general problem (it affected the released versions of Q using QEMU 0.9.0 and 0.9.1, and Fedora 9's KVM, for instance, and there was/is no known workaround). If you and anyone else have been happily running ppc-softmmu all along then you have not replied that to my messages telling me and others how you're doing it, nor replied whether the Linux images I had referenced work for you. I have mainly tried OSX/ppc and Solaris/amd64 hosts (also Linux/i386 once to make sure) and Debian Etch (40r0, 40r2), Fedora 9 and OpenSUSE 11.0 .iso files, most of which were tested to work on real hardware when written to media. Anyway, that never was a justification for or against committing things. It just proves it ridiculous blaming Aurelien for supposedly breaking the target with those two TCG commits. Whether he introduced a regression or not, it was broken before.

Concerning the order of fixing things, you are right that converting dyngen code 1:1 to TCG would carry over any lingering bugs. On the other hand, TCG would allow testing on more platforms, likely leading to discovery of such bugs at some point.

Whatever you choose to do, I wish you good luck with your projects and a little more placidness.

Salutations,

Andreas