1. 26 Jun, 2015 1 commit
  2. 21 Mar, 2014 5 commits
    • Pietro Fezzardi's avatar
      arch-sim: fixed linking with libc-functions · b98cd522
      Pietro Fezzardi authored
      the diagnostics messages were printed with too much newlines
      because they were using the standard libc puts instead of pp_puts
      b98cd522
    • Pietro Fezzardi's avatar
      arch-sim: network operations and main loop · dcddecbc
      Pietro Fezzardi authored
      New struct sim_pending_pkt is introduced to hold information on pakets still in
      fly. An array of such structures is stored in ppg->arch_data. This array is
      written by every send. The insertion is designed to sort automatically the
      packets so that the first element of the array after an insertion is always
      the first packet that will be received. Function sim_fast_forward_ns is changed
      to update also the reception times into this array, so that when you fast
      forward, also the pending packets are fast_forwarded.
      The main loop works in this way:
      	- if there are packets to be received check when
      	- if the first packet to be received is coming before the state machine
      	  timestamps expire, then fast forward till it's time to receive it.
      	  Then receive it and call the state machine of the receiver
      	- if there are no packet pending or the first pending packet is coming
      	  after a timeout, then fast forward till the timeout expires and
      	  run all the state machines
      dcddecbc
    • Pietro Fezzardi's avatar
      arch-sim: added per-arch config options · 17a47301
      Pietro Fezzardi authored
      startup is changed, because we need to set the initial time for the
      master before we set the initial offset from master fo the slave.
      In this way the diagnostics cannot be turned on to print out the
      config for the master. This is not a problem, because the master
      it's not meant to be configurable
      17a47301
    • Pietro Fezzardi's avatar
      c2c1231b
    • Pietro Fezzardi's avatar
      arch-sim: initial commit with directory tree · 8d898988
      Pietro Fezzardi authored
      Kconfig is updated with new arch.
      It compiles but it's actually doing nothing
      8d898988