Re: lm32 simulator configuration file question

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <20150405011520.GA16816@vapier>
On 04 Apr 2015 19:27, Joel Sherrill wrote:
> Once we get by this one, I noticed that the lm32timer only
> lets you instance it once. The real board has two timers.
> Is there an example of a device which can be instanced
> multiple times?

i glanced at the lm32timer device code and it looks correct to me -- there is no 
global state (it's all attached to the instance via HW_ZALLOC (me, ...), and all 
accesses go through the passed in "me" hw).

why do you think it only lets you instantiate it once ?
-mike
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVII3YAAoJEEFjO5/oN/WB/l0QAJ3nCzOwsLfa1AKwwGemBWsg
UzlV3ku8pDeKWm/OA0oRM4uM8IdUg/4FeEwckXZkWAzJqafYI9tzJz0aPQq04I5u
gkKCxhgYE/ZsjllNxSBbVeuk/TJ2EoaojRb6FcanuB/199Rlyichn5e/ibHO5Qoq
ta/5plEnRigWvXzzERT9sKn3WnF7jpyVFW2MYNXjmRmZ6mGaePohiswF6/gvmQWd
OYAkNUUk5oZALCI/Fq02BhWvPswJWW0MT6QzxUdr7lYQohbbfACuIjr/L7GpBj3D
xZ1KKWTrQwxszFj6lXPd+AmLBxYwImG2WRVOO/YTH+SCPpuF3pQaOCy5kYaCrfGr
eTZJvQkAjJZ6AITEbTXGVrwB+b6fTDaOTt/i9LES6ObR6ujDomjMz0dRf1H694cR
Asdpw9kGBt1H1cW7lawVlHRIggx54E+i3qzvxKUq6vPVDET0jEKghXPn9JxgWsc5
1SDbYbLSfiOAh7kGG2s3Zk0WgCVberaQznBiVpH2+lbz7lFzWnANMmGjtEKzTBWY
4Lwa6X0/z58DihKLtISfEDCCDzPBSWlWi4+iKjqt/sEzyxCXMpCpg2qo4aGmPYeg
HfVYW7JIPDvwBKwT1pUg4YZJ3G63b6jFnDVxct7Y0JrJdflACWJHzxAVnWdxRVaH
yB6oZmLmqpFC7zn7xlae
=ixXx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.