Skip to content

Commit

Permalink
Merge pull request #2804 from verilog-to-routing/temp_manual_move_fix
Browse files Browse the repository at this point in the history
Fix segmentation fault when moving blocks manually
  • Loading branch information
vaughnbetz authored Nov 9, 2024
2 parents 1876d05 + 07053fe commit 88e7b1e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions vpr/src/place/manual_move_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ e_create_move ManualMoveGenerator::propose_move(t_pl_blocks_to_be_moved& blocks_
float /*rlim*/,
const t_placer_opts& /*placer_opts*/,
const PlacerCriticalities* /*criticalities*/) {
auto& place_ctx = g_vpr_ctx.placement();
auto& cluster_ctx = g_vpr_ctx.clustering();
auto& device_ctx = g_vpr_ctx.device();
auto& block_locs = placer_state_.get().block_locs();
const auto& place_ctx = g_vpr_ctx.placement();
const auto& cluster_ctx = g_vpr_ctx.clustering();
const auto& device_ctx = g_vpr_ctx.device();
const auto& blk_loc_registry = placer_state_.get().blk_loc_registry();
const auto& block_locs = blk_loc_registry.block_locs();

int block_id = -1;
t_pl_loc to;
Expand Down Expand Up @@ -65,7 +66,7 @@ e_create_move ManualMoveGenerator::propose_move(t_pl_blocks_to_be_moved& blocks_
return e_create_move::ABORT;
}

e_create_move create_move = ::create_move(blocks_affected, b_from, to, place_ctx.blk_loc_registry());
e_create_move create_move = ::create_move(blocks_affected, b_from, to, blk_loc_registry);
return create_move;
}

0 comments on commit 88e7b1e

Please sign in to comment.