Re: [hatari-devel] Hatari profiler updates and DSP cycle questions |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Hatari profiler updates and DSP cycle questions
- From: Douglas Little <doug694@xxxxxxxxxxxxxx>
- Date: Fri, 1 Feb 2013 11:00:21 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=QQMGuMj2lk5YatanqGqLNuHrpR2hPM9qlL1nk8jzaOk=; b=JlHGmkfE8aFjLGFmOxZmKNFxugx2tumjQ7mRow4BtUsjnDG5XgNxcR0NeWBIIkLsvL q0ZGJCik+Ryk+BPfvn8IS8vxGiyvd+MJn8v0RtQF39NEgcGu0targkyTG/Lq90YKSD5N aMLhaeLE0uz8OGsRCqWhN/y6cZ5JqByrFi1/5mDyE0KFD1Zfph9oubOB0IDykvlHRvFE WNNrVped8lcswNtHr7sZTZo1Qdf/QRLoEtnYxpLibk2fTyibqwU05ouNL7QCZuBq3X1F xx2B7sDSwcf5bZ4ASuV9yX5Ql+ORqsdd+gQ+yi+3Z11lKz2fCgbw3BEQD66rVnlHB3nx GqaA==
Hi Laurent,
Here is the TOS executable (and source) for the DSP test which behaves strangely under Hatari.
Sorry it's a bit messy - it's really just a hacked up version of Nembench so most of the 68k code is irrelevant / disabled (i.e. ignore everything except dsp_tests routine).
The DSP tests (68k side) perform a single host write, and a single host read to perform each test - the DSP is 100% busy between these two events, so only DSP instruction time is measured. The busy time is measured against a 200Hz TimerC elapsed count at reasonably high resolution (each test runs for several seconds).
The DSP ASM source shows each test is identical, only the internal/external memory addresses change for each round...
Note: it should be trivial to change the test for other instructions, to verify Hatari timings on unusual cases if necessary... I planned to do this anyway in the new Nembench but specific instructions may be of interest for Hatari verification...
Attachment:
DSPBENCH.zip
Description: Zip archive