Hi Alex,

On 1 December 2012 20:39, Alex Horn <alex.h...@cs.ox.ac.uk> wrote:
> Hello all,
>
> As I have been browsing through QEMU's source code, I've noticed a
> hardware model for a temperature sensor called TMP105. This model
> implements the function tmp105_set(I2CSlave *i2c, int temp) declared
> in i2c.h [0, 1].
>
> Surprisingly, however, I cannot find any code which calls this setter
> function despite the fact that "CONFIG_TMP105=y" in at least one
> target (e.g. [2]).
>
> I am keen to learn who uses this virtual device, i.e. who calls
> tmp105_set(). This may answer my question if there exists a
> "third-party" model which could simulate temperature changes in the
> chip.

Most likely the function has never been in use.  It is there for
completeness of the API.  I was considering using it as a qemu monitor
command if there is ever need to test the guest under changing
temperature (e.g. some UI elements showing temperature changes).

Cheers

Reply via email to