[hatari-devel] WinUae CPU for hatari

Thomas Huth huth at users.berlios.de
Sat Nov 6 11:09:09 CET 2010


On Sat, 06 Nov 2010 10:30:43 +0100
Laurent Sallafranque <laurent.sallafranque at free.fr> wrote:

> Hello,
> 
> I still have very few linking problems to fix before starting to let
> run the new core.
> There's still the big problem in cpu core (see my precedent help
> message).

I think it is because of this change here:

@@ -3829,8 +3832,11 @@
                        if (generate_stbl)
                                fprintf (stblfile, "#ifdef CPUEMU_%d\n", postfix);
                        postfix2 = postfix;
-                       sprintf (fname, "cpuemu_%d.cpp", postfix);
-                       freopen (fname, "wb", stdout);
+                       sprintf (fname, "cpuemu_%d.c", postfix);
+                       if (freopen ("cpuemu.c", "wb", stdout) == NULL) {
+                               perror("cpuemu.c");
+                               return -1;
+                       }

You've changed the freopen to always re-create the file cpuemu.c, while
the original sources was creating multiple cpuemu_XX.cpp files. So when
the code does the reopen now, it overwrites the opcodes from the
previous cpu level. ==> just replace "cpuemu.c" by fname again!

> Actually, I upload little changes to share with you my work.
> But when we'll want to update WinUae core later (if needed), I think 
> it'll be hard to know what was changed.
> 
> Is there a way to remove all the intermediate uploads to keep only
> - first winUae original code
> - first working Harati's fixes and changes

You can't remove intermediate commits later. However, you can always
diff between the first checkin and the latest or any other version, so
this shouldn't be a problem, as far as I can tell.

 Thomas



More information about the hatari-devel mailing list