Menu

#280 SMP: compile with debug broken

None
closed
5
2021-03-27
2002-03-20
No

With SMP enabled, Bochs would not compile starting in
October 2001. These lines in dbg_main.cc:

BX_CPU_THIS_PTR guard_found.cs =
BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS].selector.value;
BX_CPU_THIS_PTR guard_found.eip = BX_CPU_THIS_PTR
prev_eip;
BX_CPU_THIS_PTR guard_found.laddr =
BX_CPU_THIS_PTR
sregs[BX_SEG_REG_CS].cache.u.segment.base +
BX_CPU_THIS_PTR prev_eip;
BX_CPU_THIS_PTR guard_found.is_32bit_code =
BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS].cach

In SMP mode, these give compile problems.

Discussion

  • Bryce Denney

    Bryce Denney - 2002-03-20

    Logged In: YES
    user_id=185114

    William Lee Irwin III <wli@holomorphy.com> sent in a patch
    to fix this, which I checked in as patch.smp-debug-wli.

    I believe the BX_CPU(i) method he uses for SMP mode will
    work perfectly well for the uniprocessor mode too. Test
    this and check it in, one way or the other.

     
  • Bryce Denney

    Bryce Denney - 2002-03-20

    Logged In: YES
    user_id=185114

    Fixed in rev 1.39 of debug/dbg_main.cc.


    revision 1.39
    date: 2002/03/20 02:49:07; author: bdenney; state: Exp;
    lines: +12 -9
    - commit patch.smp-debug-wli, based on a patch from
    William Lee Irwin III <wli@holomorphy.com>


     

Log in to post a comment.