WineHQ
Wine Forums

Board index » WineHQ » Wine Help




 Page 1 of 1 [ 3 posts ] 



 
Author Message
 Post subject: Win16 app support idea
 Post Posted: Thu Jul 04, 2019 5:17 pm 
Offline
Level 2
Level 2

Joined: Sun Aug 09, 2009 3:12 pm
Posts: 21
I've been thinking about a couple of different Win16 problems.

First, I've heard that Win16 app support is difficult due to debug limitations. Articles I've read say that cooperative multitasking is the primary complaint because a hung app can block everything but this doesn't seem to be a problem for Wine. There's probably other limitations of NE executables I'm not aware of.

Second, a few years ago there was a security fix that blocked running 16-bit apps on x86-64 kernels (bug #36664).

And finally, there is the general difficulty of executing 16-bit apps on 64-bit architectures via vm86, which affects 64-bit Wine.

While thinking about these problems it occurred to me that integrating an x86 emulator into Wine would be a practical solution. It only needs to support 16-bit apps, which are generally not constrained by CPU performance on modern systems, but 32-bit support could also be useful for 64-bit Wine. The emulator decouples the app from the hardware which avoids the security and support problems. It might also be useful as the start of non-x86 architecture support (ARM, RISC).

If the emulator had a least a JTAG interface then debugging tools could be used externally. A more complex debug API could support more advanced features, like gdb checkpoints, since full control of the emulated CPU and process environment is possible.

The only technical problem I foresee is supporting 16/32-bit thunking but it seems solvable.

Does this make sense?


Top 
 Post Posted: Fri Jul 05, 2019 12:53 am 
Offline
Level 1
Level 1

Joined: Sat Mar 30, 2013 12:22 pm
Posts: 8
Win16 apps don't need vm86 mode, they run fine under x86-64. There's no reason to add a CPU emulator for them.


Top 
 Post Posted: Fri Jul 05, 2019 9:47 am 
Offline
Level 2
Level 2

Joined: Sun Aug 09, 2009 3:12 pm
Posts: 21
julliard wrote:
Win16 apps don't need vm86 mode, they run fine under x86-64. There's no reason to add a CPU emulator for them.

I guess I misunderstood the situation with them. I'll go hide back under my rock now. :)


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 3 posts ] 




Board index » WineHQ » Wine Help


Who is online

Users browsing this forum: No registered users and 18 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: