Porting QEMU to PalmOS
I'm afraid I will have to dissapoint you: it will be only isapc with no networking or other fancy devices. Main goal is the ability to run dos games. I do not know how familiar are you with PalmOS developer support. It is poor, gcc lack many important functions that have to be written from scratch. When I ported dosbox (which is written in c++) I realized that there is no support for vectors, iterators, namespaces etc, so I had to write many operators myself. The biggest problem with QEMU is that it uses signals a lot, and, guess what, PalmOS has no support for signals _at_ _all_. I found a way to get things going without them for now, but this has it's drawbacks. I will have to think about something better later on.
----- Original Message ----
From: Jonathan Kalbfeld <[email protected]>
To: [email protected]
Sent: Thursday, May 24, 2007 11:18:48 PM
Subject: Re: [Qemu-devel] Porting QEMU to PalmOS
One definite plus with having QEMU for PalmOS is the ability to run things like OpenVPN (even if slow) and connect to a VPN back-end.
As is, I use OpenVPN tunnels to link up my QEMU machines on Solaris.
jonathan
On 5/23/07, Wolfgang Schildbach <[email protected]> wrote:
Try compiling as position-dependent (i.e. not PIC) code. GOT is a typical feature of position independent code.
- Wolfgang
qemu-devel-bounces+wolfgang.schildbach=codingtechnologies.com@nongnu.org wrote on 23.05.2007 13:20:22:
Quoted 8 lines
Hi Johannes,
thanks for your quick response.
I thought QEMU was already compiled and run on an ARM machine? If so, how come that noone else had such problem (I searched for it on google),
and PXA255 is a standard ARM CPU with a few additional instructions. And how to make them not come from GOT, those vars are declared as
extern,
Quoted 25 lines
so they are globals?
BR,
Voda.----- Original Message ----
From: Johannes Schindelin < [email protected]>
To: sinisa marovic <[email protected]>
Cc: [email protected]
Sent: Wednesday, May 23, 2007 12:48:59 PM
Subject: Re: [Qemu-devel] Porting QEMU to PalmOSHi,
Quoted 9 lines · sinisa marovic
Relocation types that fail are 25 and 26, which are
R_ARM_GOTPCandR_ARM_GOT32respectively. Their names are:_GLOBAL_OFFSET_TABLE_
cc_table__op_param1__op_param2__op_param3
Quoted 4 lines
Quoted 1 line
Is there a way to fix this?
The GOT is an offset table. Many CPUs have fixed-size instruction sets, which means that you cannot easily jump to an absolute address, since
the
Quoted 4 lines
address alone would already fill up the size.
Of course, this is a no-no for QEmu, since the _same_ function snippet will be reused _multiple_ times. So, the address must not come from a
GOT,
Quoted 3 lines
but be inserted directly into the code.
I do not remember off-hand how I managed to do this a couple of years
ago,
Quoted 1 line
when I worked on a MIPS host, but there _are_ gcc options to avoid a
GOT.
Quoted 7 lines
Hth,
DschoFood fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
Signature · 10 lines
-- Jonathan Kalbfeld +1 323 620 6682 ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
Still sounds fantistically fun.
Maybe you can point me in the right direction to write PalmOS programs (.prc's right?).
I have some goofy ideas for things to write for my Treo.
jonathan
Quoted 112 lines · sinisa marovic
I'm afraid I will have to dissapoint you: it will be only isapc with no networking or other fancy devices. Main goal is the ability to run dos games.
I do not know how familiar are you with PalmOS developer support. It is poor, gcc lack many important functions that have to be written from scratch. When I ported dosbox (which is written in c++) I realized that there is no support for vectors, iterators, namespaces etc, so I had to write many operators myself. The biggest problem with QEMU is that it uses signals a lot, and, guess what, PalmOS has no support for signals _at_ _all_. I found a way to get things going without them for now, but this has it's drawbacks. I will have to think about something better later on.----- Original Message ----
From: Jonathan Kalbfeld <[email protected]>
To: [email protected]
Sent: Thursday, May 24, 2007 11:18:48 PM
Subject: Re: [Qemu-devel] Porting QEMU to PalmOSOne definite plus with having QEMU for PalmOS is the ability to run things like OpenVPN (even if slow) and connect to a VPN back-end.
As is, I use OpenVPN tunnels to link up my QEMU machines on Solaris.
jonathan
Quoted 54 lines · Wolfgang Schildbach
Try compiling as position-dependent (i.e. not PIC) code. GOT is a typical
feature of position independent code.- Wolfgang
qemu-devel-bounces+wolfgang.schildbach=codingtechnologies.com@nongnu.org wrote on 23.05.2007 13:20:22:
Quoted 8 lines
Hi Johannes,
thanks for your quick response.
I thought QEMU was already compiled and run on an ARM machine? If so, how come that noone else had such problem (I searched for it on google),
and PXA255 is a standard ARM CPU with a few additional instructions. And how to make them not come from GOT, those vars are declared asextern,
Quoted 25 lines
so they are globals?
BR,
Voda.----- Original Message ----
From: Johannes Schindelin < [email protected]>
To: sinisa marovic <[email protected]>
Cc: [email protected]
Sent: Wednesday, May 23, 2007 12:48:59 PM
Subject: Re: [Qemu-devel] Porting QEMU to PalmOSHi,
Quoted 9 lines · sinisa marovic
Relocation types that fail are 25 and 26, which are
R_ARM_GOTPCandR_ARM_GOT32respectively. Their names are:_GLOBAL_OFFSET_TABLE_
cc_table__op_param1__op_param2__op_param3Quoted 3 lines
Quoted 1 line
Is there a way to fix this?
The GOT is an offset table. Many CPUs have fixed-size instruction
sets,
Quoted 1 line
which means that you cannot easily jump to an absolute address, since
the
Quoted 4 lines
address alone would already fill up the size.
Of course, this is a no-no for QEmu, since the _same_ function snippet will be reused _multiple_ times. So, the address must not come from a
Quoted 18 lines
GOT,
Quoted 3 lines
but be inserted directly into the code.
I do not remember off-hand how I managed to do this a couple of years
ago,
Quoted 1 line
when I worked on a MIPS host, but there _are_ gcc options to avoid a
GOT.
Quoted 7 lines
Hth,
DschoFood fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.--
--
Jonathan Kalbfeld
+1 323 620 6682------------------------------
Get the free Yahoo! toolbar<http://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.php>and rest assured with the added security of spyware protection.
Signature · 3 lines
-- Jonathan Kalbfeld +1 323 620 6682
Palm API reference:
http://www.access-company.com/developers/documents/docs/palmos/PalmOSReference/ReferenceTOC.html
You'll need to install (with ports, apt-get, or what have you):
m68k-palmos-gcc
m68k-palmos-gdb (not required, but very useful) m86k-palmos-binutils
palmos sdk
pilrc
PalmOS has its own C library, which makes it painfully frustrating to code for at times. The API reference is invaluable.
Good luck.
Quoted 131 lines · Jonathan Kalbfeld
Still sounds fantistically fun.
Maybe you can point me in the right direction to write PalmOS programs (.prc's right?).
I have some goofy ideas for things to write for my Treo.
jonathan
Quoted 109 lines · sinisa marovic
I'm afraid I will have to dissapoint you: it will be only isapc with no networking or other fancy devices. Main goal is the ability to run dos games.
I do not know how familiar are you with PalmOS developer support. It is poor, gcc lack many important functions that have to be written from scratch. When I ported dosbox (which is written in c++) I realized that there is no support for vectors, iterators, namespaces etc, so I had to write many operators myself. The biggest problem with QEMU is that it uses signals a lot, and, guess what, PalmOS has no support for signals _at_ _all_. I found a way to get things going without them for now, but this has it's drawbacks. I will have to think about something better later on.----- Original Message ----
From: Jonathan Kalbfeld <[email protected]>
To: [email protected]
Sent: Thursday, May 24, 2007 11:18:48 PM
Subject: Re: [Qemu-devel] Porting QEMU to PalmOSOne definite plus with having QEMU for PalmOS is the ability to run things like OpenVPN (even if slow) and connect to a VPN back-end.
As is, I use OpenVPN tunnels to link up my QEMU machines on Solaris.
jonathan
Quoted 54 lines · Wolfgang Schildbach
Try compiling as position-dependent (i.e. not PIC) code. GOT is a typical
feature of position independent code.- Wolfgang
qemu-devel-bounces+wolfgang.schildbach=codingtechnologies.com@nongnu.org wrote on 23.05.2007 13:20:22:
Quoted 8 lines
Hi Johannes,
thanks for your quick response.
I thought QEMU was already compiled and run on an ARM machine? If so, how come that noone else had such problem (I searched for it on google),
and PXA255 is a standard ARM CPU with a few additional instructions. And how to make them not come from GOT, those vars are declared asextern,
Quoted 25 lines
so they are globals?
BR,
Voda.----- Original Message ----
From: Johannes Schindelin < [email protected]>
To: sinisa marovic <[email protected]>
Cc: [email protected]
Sent: Wednesday, May 23, 2007 12:48:59 PM
Subject: Re: [Qemu-devel] Porting QEMU to PalmOSHi,
Quoted 9 lines · sinisa marovic
Relocation types that fail are 25 and 26, which are
R_ARM_GOTPCandR_ARM_GOT32respectively. Their names are:_GLOBAL_OFFSET_TABLE_
cc_table__op_param1__op_param2__op_param3Quoted 3 lines
Quoted 1 line
Is there a way to fix this?
The GOT is an offset table. Many CPUs have fixed-size instruction
sets,
Quoted 1 line
which means that you cannot easily jump to an absolute address, since
the
Quoted 4 lines
address alone would already fill up the size.
Of course, this is a no-no for QEmu, since the _same_ function snippet will be reused _multiple_ times. So, the address must not come from a
Quoted 18 lines
GOT,
Quoted 3 lines
but be inserted directly into the code.
I do not remember off-hand how I managed to do this a couple of years
ago,
Quoted 1 line
when I worked on a MIPS host, but there _are_ gcc options to avoid a
GOT.
Quoted 7 lines
Hth,
DschoFood fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.--
--
Jonathan Kalbfeld
+1 323 620 6682Quoted 5 lines
------------------------------
Get the free Yahoo! toolbar<http://us.rd.yahoo.com/evt=48226/*http://new.toolbar.yahoo.com/toolbar/features/norton/index.php>and rest assured with the added security of spyware protection.--
--
Jonathan Kalbfeld
+1 323 620 6682