* Dosemu cpu exception
@ 2009-04-13 21:44 Hans Bausewein
2009-04-13 21:53 ` Ivan Baldo
0 siblings, 1 reply; 2+ messages in thread
From: Hans Bausewein @ 2009-04-13 21:44 UTC (permalink / raw)
To: The DOSEMU Team
[-- Attachment #1: Type: text/plain, Size: 1374 bytes --]
Hello DOSEMU team,
I could not find where to report bugs, so I hope this is a valid way.
It seems that DOSEMU does not support newer CPU's. Maybe simply, because
it was not updated since they arrived. I've checked the SVN version at
http://dosemu.svn.sourceforge.net/viewvc/dosemu/trunk/src/base/init/
My /proc/cpuinfo says:
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : AMD Phenom(tm) 9550 Quad-Core Processor
The
switch (get_proc_intvalue_by_key(
kernel_version_code > 0x20100+74 ? "cpu family" : "cpu" )) {
in src/base/init/config.c tests for values 5, 6, 586, 686, 15.
The result is that config.cpu_spd is zero, which causes a "Division by
zero" on booting dos.
If you run dosemu with options
-h0 -O
it dumps the configuration to stderr.
It dumps (among a lot else):
CPUclock infMHz
That is a (poorly formatted) "infinity" result of the division:
(((double)LLF_US)/config.cpu_spd)
in src/base/init/config.c
Adding a case 16 to the switch statement solves this. It reports the CPU
speed as 2210.17 MHz
It also makes my DOSEMU boot. I'm not sure whether it's completely OK, yet.
See the attached patch to the 1.4.0 version.
There are more newer processors around. Here's number 17 in this Ubuntu
bug report:
https://lists.ubuntu.com/archives/universe-bugs/2009-January/036704.html
Hans
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: dosemu-patch-case16.diff --]
[-- Type: text/x-patch; name="dosemu-patch-case16.diff", Size: 198 bytes --]
151c151
< (*print)("CPUclock %gMHz\ncpu_spd 0x%lx\ncpu_tick_spd 0x%lx\n",
---
> (*print)("CPUclock %g MHz\ncpu_spd 0x%lx\ncpu_tick_spd 0x%lx\n",
482a483,484
> case 16:
> case 17:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Dosemu cpu exception
2009-04-13 21:44 Dosemu cpu exception Hans Bausewein
@ 2009-04-13 21:53 ` Ivan Baldo
0 siblings, 0 replies; 2+ messages in thread
From: Ivan Baldo @ 2009-04-13 21:53 UTC (permalink / raw)
To: Hans Bausewein; +Cc: The DOSEMU Team
Hello Hans.
There is a tracker at http://sourceforge.net/projects/dosemu , I
don't know if any DOSEmu developer reads this list so maybe it is more
effective to use the tracker there (or maybe not...).
Thanks!!!
Bye.
El 13/04/09 18:44, Hans Bausewein escribió:
> Hello DOSEMU team,
>
> I could not find where to report bugs, so I hope this is a valid way.
>
> It seems that DOSEMU does not support newer CPU's. Maybe simply, because
> it was not updated since they arrived. I've checked the SVN version at
> http://dosemu.svn.sourceforge.net/viewvc/dosemu/trunk/src/base/init/
>
>
> My /proc/cpuinfo says:
>
> vendor_id : AuthenticAMD
> cpu family : 16
> model : 2
> model name : AMD Phenom(tm) 9550 Quad-Core Processor
>
>
> The
>
> switch (get_proc_intvalue_by_key(
> kernel_version_code > 0x20100+74 ? "cpu family" : "cpu" )) {
>
> in src/base/init/config.c tests for values 5, 6, 586, 686, 15.
>
> The result is that config.cpu_spd is zero, which causes a "Division by
> zero" on booting dos.
>
>
>
> If you run dosemu with options
> -h0 -O
> it dumps the configuration to stderr.
>
> It dumps (among a lot else):
> CPUclock infMHz
>
> That is a (poorly formatted) "infinity" result of the division:
>
> (((double)LLF_US)/config.cpu_spd)
>
> in src/base/init/config.c
>
> Adding a case 16 to the switch statement solves this. It reports the CPU
> speed as 2210.17 MHz
>
> It also makes my DOSEMU boot. I'm not sure whether it's completely OK, yet.
> See the attached patch to the 1.4.0 version.
>
> There are more newer processors around. Here's number 17 in this Ubuntu
> bug report:
>
> https://lists.ubuntu.com/archives/universe-bugs/2009-January/036704.html
>
> Hans
>
>
>
--
Ivan Baldo - ibaldo@adinet.com.uy - http://ibaldo.codigolibre.net/
From Montevideo, Uruguay, at the south of South America.
Freelance programmer and GNU/Linux system administrator, hire me!
Alternatives: ibaldo@codigolibre.net - http://go.to/ibaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-13 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-13 21:44 Dosemu cpu exception Hans Bausewein
2009-04-13 21:53 ` Ivan Baldo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox